mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
Merge branch 'feature/RemoveWarningOutputSrc' into develop
This commit is contained in:
commit
86cd20737b
2 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
* Remove redundant references from Config / Help & Info
|
||||
* Fix poster preview on small poster layout
|
||||
* Change overhaul Config Anime to be in line with General Configuration
|
||||
* Remove output of source code line when warnings highlight libraries not used with IMDb
|
||||
|
||||
|
||||
### 0.3.0 (2014-11-12 14:30:00 UTC)
|
||||
|
|
|
@ -441,6 +441,12 @@ class DOMParserBase(object):
|
|||
self._useModule = useModule
|
||||
nrMods = len(useModule)
|
||||
_gotError = False
|
||||
|
||||
# Force warnings.warn() to omit the source code line in the message
|
||||
formatwarning_orig = warnings.formatwarning
|
||||
warnings.formatwarning = lambda message, category, filename, lineno, line=None: \
|
||||
formatwarning_orig(message, category, filename, lineno, line='')
|
||||
|
||||
for idx, mod in enumerate(useModule):
|
||||
mod = mod.strip().lower()
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue