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

Fixed a bug with a node

parent 7077a3d0
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,7 @@ class Node(QObject):
block = bma.blockchain.Current(self.endpoint.conn_handler()).get()
block_number = block["number"]
except ValueError as e:
if '404' in e:
if '404' in str(e):
block_number = 0
peers_data = bma.network.peering.Peers(self.endpoint.conn_handler()).get()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment