Skip to content

Commit 2e74f25

Browse files
committed
Now catching ImportError instead of KeyError
KeyError is if environ access fails.
1 parent 4136810 commit 2e74f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
try:
55
from secrets import BASEUSER_PW, BASEADMIN_PW
6-
except KeyError:
6+
except ImportError:
77
BASEUSER_PW = os.environ['BASEUSER_PW']
88
BASEADMIN_PW = os.environ['BASEADMIN_PW']
99

0 commit comments

Comments
 (0)