this was only used for testing

This commit is contained in:
Matthias 2022-05-11 21:58:14 +02:00
parent 63fa527fa4
commit 86f663e834
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -194,8 +194,6 @@ class InvenTreeConfig(AppConfig):
logger.info(f'User {str(new_user)} was created!')
except IntegrityError as _e: # pragma: no cover
logger.warning(f'The user "{add_user}" could not be created due to the following error:\n{str(_e)}')
if settings.TESTING_ENV:
raise _e
# do not try again
settings.USER_ADDED = True