See attached for patch
--- a/deluge/log.py +++ b/deluge/log.py @@ -86,7 +86,7 @@ def exception(self, msg, *args, **kwargs): yield LoggingLoggerClass.exception(self, msg, *args, **kwargs) - def findCaller(self, stack_info=False): # NOQA: N802 + def findCaller(self, stack_info=False, **kwargs): # NOQA: N802 f = logging.currentframe().f_back rv = '(unknown file)', 0, '(unknown function)' while hasattr(f, 'f_code'):