Commit 897f24c3 authored by echel0n's avatar echel0n

Fixed issue with logging exceptions, KeyError 'exc_info'

parent 3f15163f
......@@ -254,7 +254,8 @@ class Logger(logging.getLoggerClass()):
super(Logger, self).exception(msg, *args, **kwargs)
def error(self, msg, *args, **kwargs):
super(Logger, self).error(msg, exc_info=1, *args, **kwargs)
kwargs['exc_info'] = True
super(Logger, self).error(msg, *args, **kwargs)
def warning(self, msg, *args, **kwargs):
super(Logger, self).warning(msg, *args, **kwargs)
......@@ -75,9 +75,9 @@ class UPNPClient(object):
#"UPnP port mapping already configured, not overriding it")
else:"Failed to add UPnP portmap")"Failed to add UPnP portmap")
except Exception:"Failed to add UPnP portmap")"Failed to add UPnP portmap")
def _add_nat_portmap(self, upnp_dev):
# internal_ip = self._find_internal_ip_on_device_network(upnp_dev)
......@@ -167,6 +167,6 @@ class SpeedCDProvider(TorrentProvider):"Found result: {}".format(title))
except (AttributeError, TypeError, KeyError, ValueError, IndexError):'Failed parsing provider.')'Failed parsing provider.')
return results
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment