diff --git a/lbrynet/lbrynet_daemon/LBRYDaemonCLI.py b/lbrynet/lbrynet_daemon/LBRYDaemonCLI.py index b146cb1a6..2b34d4301 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemonCLI.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemonCLI.py @@ -35,7 +35,7 @@ def main(): if len(args) > 1: if isinstance(args[1], dict): params = args[1] - elif isinstance(args[1], str) or isinstance(args[1], unicode): + elif isinstance(args[1], str, unicode): params = json.loads(args[1]) else: params = None diff --git a/lbrynet/lbrynet_daemon/LBRYPublisher.py b/lbrynet/lbrynet_daemon/LBRYPublisher.py index c2ef94d1d..c0658bfec 100644 --- a/lbrynet/lbrynet_daemon/LBRYPublisher.py +++ b/lbrynet/lbrynet_daemon/LBRYPublisher.py @@ -127,11 +127,11 @@ class Publisher(object): log.info(err.getTraceback()) message = "An error occurred publishing %s to %s. Error: %s." if err.check(InsufficientFundsError): - d = defer.succeed(True) error_message = "Insufficient funds" else: - d = defer.succeed(True) error_message = err.getErrorMessage() + log.error(error_message) log.error(message, str(self.file_name), str(self.publish_name), err.getTraceback()) - return d + + return defer.succeed(error_message)