Added UISignalQueue.put at NoSectionError & NoOptionError exceptions & updated existing UISignalQueue.put msg

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-08-23 17:26:28 +05:30
parent fc19c54836
commit 6dffb1e470
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A

View File

@ -560,6 +560,14 @@ class singleWorker(StoppableThread):
self._getKeysForAddress(fromaddress) self._getKeysForAddress(fromaddress)
except (configparser.NoSectionError, configparser.NoOptionError) as err: except (configparser.NoSectionError, configparser.NoOptionError) as err:
self.logger.warning("Section or Option did not found: %s", err) self.logger.warning("Section or Option did not found: %s", err)
queues.UISignalQueue.put((
'updateSentItemStatusByAckdata', (
ackdata,
tr._translate(
"MainWindow",
"Error! Could not find sender address"
" (your address) in the keys.dat file."))
))
except Exception as err: except Exception as err:
self.logger.error( self.logger.error(
'Error within sendBroadcast. Could not read' 'Error within sendBroadcast. Could not read'
@ -571,8 +579,7 @@ class singleWorker(StoppableThread):
ackdata, ackdata,
tr._translate( tr._translate(
"MainWindow", "MainWindow",
"Error! Could not find sender address" "Error, can't send."))
" (your address) in the keys.dat file."))
)) ))
continue continue
@ -1141,6 +1148,14 @@ class singleWorker(StoppableThread):
fromaddress) fromaddress)
except (configparser.NoSectionError, configparser.NoOptionError) as err: except (configparser.NoSectionError, configparser.NoOptionError) as err:
self.logger.warning("Section or Option did not found: %s", err) self.logger.warning("Section or Option did not found: %s", err)
queues.UISignalQueue.put((
'updateSentItemStatusByAckdata', (
ackdata,
tr._translate(
"MainWindow",
"Error! Could not find sender address"
" (your address) in the keys.dat file."))
))
except Exception as err: except Exception as err:
self.logger.error( self.logger.error(
'Error within sendMsg. Could not read' 'Error within sendMsg. Could not read'
@ -1152,8 +1167,7 @@ class singleWorker(StoppableThread):
ackdata, ackdata,
tr._translate( tr._translate(
"MainWindow", "MainWindow",
"Error! Could not find sender address" "Error, can't send."))
" (your address) in the keys.dat file."))
)) ))
continue continue