diff options
Diffstat (limited to 'app_test.py')
-rw-r--r-- | app_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app_test.py b/app_test.py index 27f88164..96900ef3 100644 --- a/app_test.py +++ b/app_test.py @@ -6,7 +6,10 @@ from flask import Blueprint from flask_testing import TestCase os.environ["BOT_API_KEY"] = "abcdefg" # This is a constant, must be done first -del os.environ["FLASK_DEBUG"] # Some unit tests fail if this is set +try: + del os.environ["FLASK_DEBUG"] # Some unit tests fail if this is set +except KeyError: + pass from app import manager from gunicorn_config import when_ready |