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)
except (configparser.NoSectionError, configparser.NoOptionError) as 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:
self.logger.error(
'Error within sendBroadcast. Could not read'
@ -571,8 +579,7 @@ class singleWorker(StoppableThread):
ackdata,
tr._translate(
"MainWindow",
"Error! Could not find sender address"
" (your address) in the keys.dat file."))
"Error, can't send."))
))
continue
@ -1141,6 +1148,14 @@ class singleWorker(StoppableThread):
fromaddress)
except (configparser.NoSectionError, configparser.NoOptionError) as 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:
self.logger.error(
'Error within sendMsg. Could not read'
@ -1152,8 +1167,7 @@ class singleWorker(StoppableThread):
ackdata,
tr._translate(
"MainWindow",
"Error! Could not find sender address"
" (your address) in the keys.dat file."))
"Error, can't send."))
))
continue