aboutsummaryrefslogtreecommitdiffstats
path: root/app_test.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app_test.py5
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