diff options
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r-- | module/gui/connector.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py index 91f23dafb..74d791776 100644 --- a/module/gui/connector.py +++ b/module/gui/connector.py @@ -46,6 +46,7 @@ class Connector(QObject): self.password = None self.ssl = None self.running = True + self.internal = False self.proxy = self.Dummy() def setConnectionData(self, host, port, user, password, ssl=False): @@ -66,6 +67,8 @@ class Connector(QObject): connect error signals, check server version """ + if self.internal: return True + err = None try: client = ThriftClient(self.host, self.port, self.user, self.password) @@ -103,6 +106,9 @@ class Connector(QObject): """ dummy rpc proxy, to prevent errors """ + def __nonzero__(self): + return False + def __getattr__(self, attr): def dummy(*args, **kwargs): return None |