creating and deleting an Address in short time crashes class_singleWorker.py #541

Closed
opened 2013-11-02 15:38:47 +01:00 by merlink01 · 0 comments
merlink01 commented 2013-11-02 15:38:47 +01:00 (Migrated from github.com)

The While loop (line 70) crashes if a job exists, fe: sendOutOrStoreMyV3Pubkey
because the deleteAddress function deletes the Address section in configfile.

line 220:
shared.config.set(
myAddress, 'lastpubkeysendtime', str(int(time.time())))
could not be written, because the myAddress section does not exist anymore.

A fix could be:
if not bitmessagemain.shared.config.has_section(myAddress):
return

at the start of:
sendOutOrStoreMyV3Pubkey and sendOutOrStoreMyV4Pubkey

or try - except at the while loop.

The While loop (line 70) crashes if a job exists, fe: sendOutOrStoreMyV3Pubkey because the deleteAddress function deletes the Address section in configfile. line 220: shared.config.set( myAddress, 'lastpubkeysendtime', str(int(time.time()))) could not be written, because the myAddress section does not exist anymore. A fix could be: if not bitmessagemain.shared.config.has_section(myAddress): return at the start of: sendOutOrStoreMyV3Pubkey and sendOutOrStoreMyV4Pubkey or try - except at the while loop.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-11-28#541
No description provided.