creating and deleting an Address in short time crashes class_singleWorker.py #541
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-16#541
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.