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

Fixed nodes loading

parent e404cb09
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,8 @@ class Node(QObject):
for endpoint_data in data['endpoints']:
endpoints.append(Endpoint.from_inline(endpoint_data))
currency = data['currency']
if currency in data:
currency = data['currency']
node = cls(currency, endpoints, "", 0, Node.ONLINE)
node.refresh_state()
......
......@@ -17,8 +17,8 @@ from .wot_tab import WotTabWidget
from .transfer import TransferMoneyDialog
from .password_asker import PasswordAskerDialog
from .certification import CertificationDialog
from ..core.person import Person
from ..tools.exceptions import PersonNotFoundError, NoPeerAvailable
from ..core.person import Person
class CommunityTabWidget(QWidget, Ui_CommunityTabWidget):
......
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