From df3224dab33d3fba4a430555fcb133fea29bda9c Mon Sep 17 00:00:00 2001 From: surbhi Date: Mon, 29 Jul 2024 17:58:22 +0530 Subject: [PATCH] bypass BITMESSAGE_HOME --- src/mockbm/helper_startup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mockbm/helper_startup.py b/src/mockbm/helper_startup.py index 838302ae..2dc06878 100644 --- a/src/mockbm/helper_startup.py +++ b/src/mockbm/helper_startup.py @@ -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():