Skip to content
Snippets Groups Projects
Commit d713cf05 authored by inso's avatar inso
Browse files

Fix issue #514

parent 1f25b74d
No related branches found
No related tags found
No related merge requests found
......@@ -225,8 +225,8 @@ class Community(QObject):
req_args={'number': block_number})
return block['medianTime']
except errors.DuniterError as e:
if e.ucode == errors.BLOCK_NOT_FOUND:
return 0
logging.debug(str(e))
return 0
except NoPeerAvailable as e:
logging.debug(str(e))
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment