Rev2003, Fix dbQuery exception in verbose mode

This commit is contained in:
shortcutme 2017-03-15 13:13:21 +01:00
parent f55c2659cd
commit afcd6dfa14
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv): def __init__(self, argv):
self.version = "0.5.3" self.version = "0.5.3"
self.rev = 2002 self.rev = 2003
self.argv = argv self.argv = argv
self.action = None self.action = None
self.config_file = "zeronet.conf" self.config_file = "zeronet.conf"

View file

@ -533,7 +533,7 @@ class UiWebsocket(object):
# Sql query # Sql query
def actionDbQuery(self, to, query, params=None, wait_for=None): def actionDbQuery(self, to, query, params=None, wait_for=None):
if config.debug: if config.debug or config.verbose:
s = time.time() s = time.time()
rows = [] rows = []
try: try: