From 689ac431d331ba8a9f54be1fdd8ea9c175c4ddd2 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Thu, 29 Dec 2016 22:37:47 -0600 Subject: [PATCH] bug fix in log.fail() The value of the callback needs to be returned. In particular, this allows the error to be passed along. --- lbrynet/core/log_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/log_support.py b/lbrynet/core/log_support.py index 0c228e8a6..72f96da14 100644 --- a/lbrynet/core/log_support.py +++ b/lbrynet/core/log_support.py @@ -369,7 +369,7 @@ class Logger(logging.Logger): self.name, level, fn, lno, msg, msg_args, exc_info, func, msg_kwargs) self.handle(record) if callback: - callback(err, *args, **kwargs) + return callback(err, *args, **kwargs) return _fail def trace(self, msg, *args, **kwargs):