bypass BITMESSAGE_HOME

This commit is contained in:
surbhi 2024-07-29 17:58:22 +05:30
parent a5c32ccf4c
commit 9c3a539076
Signed by untrusted user: surbhi
GPG Key ID: BD938EA4D030869A

View File

@ -4,7 +4,10 @@ from pybitmessage.bmconfigparser import config
def loadConfig():
"""Loading mock test data"""
config.read(os.path.join(os.environ['BITMESSAGE_HOME'], 'keys.dat'))
try:
config.read(os.path.join(os.environ['BITMESSAGE_HOME'], 'keys.dat'))
except KeyError:
pass
def total_encrypted_messages_per_month():