return fail from check_first_run when is_first_run isn't callable

This commit is contained in:
Jack 2016-04-08 23:52:43 -04:00
parent 08e25f4622
commit 162275992b

View file

@ -849,7 +849,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
except:
d = defer.fail(None)
d.addCallbacks(lambda r: self._render_response(r, OK_CODE), lambda _: self._render_response("Loading", OK_CODE))
d.addCallbacks(lambda r: self._render_response(r, OK_CODE), lambda _: server.failure)
return d