Skip to content

Commit 85784e7

Browse files
committed
Error if model can not be imported
1 parent 20e7c43 commit 85784e7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

error_tracker/django/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def get_exception_model():
4343
raise warnings.warn(
4444
"APP_ERROR_DB_MODEL refers to model '%s' that has not been installed" % model_path
4545
)
46-
warnings.warn("APP_ERROR_DB_MODEL is set but not usable using default model")
47-
return ErrorModel
46+
raise Exception("APP_ERROR_DB_MODEL is set but not usable")
4847

4948

5049
def get_masking_module():

0 commit comments

Comments
 (0)