bypass BITMESSAGE_HOME

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

View File

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