Skip to content

Commit e2c06ee

Browse files
chore: Use sys.exit() calls (#7329)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent 7cfa257 commit e2c06ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import os
23

34
from envparse import env
@@ -76,7 +77,7 @@ class Config:
7677

7778
if not SQLALCHEMY_DATABASE_URI:
7879
print('`DATABASE_URL` either not exported or empty')
79-
exit()
80+
sys.exit()
8081

8182
BASE_DIR = basedir
8283
FORCE_SSL = os.getenv('FORCE_SSL', 'no') == 'yes'

0 commit comments

Comments
 (0)