diff --git a/src/cutecoin/core/net/node.py b/src/cutecoin/core/net/node.py index b7e1366e12cb7a5b4f1b6cb28315348ea1561318..3c7ef40afe9b429d60937c15e4d41df55032e291 100644 --- a/src/cutecoin/core/net/node.py +++ b/src/cutecoin/core/net/node.py @@ -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() diff --git a/src/cutecoin/gui/community_tab.py b/src/cutecoin/gui/community_tab.py index 5d713e640adff57b8af9354ffc8473ecdd3341ac..9588ec9dbfc920de98c34ae4c5fc74f565244fb6 100644 --- a/src/cutecoin/gui/community_tab.py +++ b/src/cutecoin/gui/community_tab.py @@ -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):