ignore in coverage

This commit is contained in:
Matthias 2022-03-12 00:54:08 +01:00
parent 5587c04d0d
commit 92398d7b39
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -18,12 +18,12 @@ def currency_code_default():
try:
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
except ProgrammingError:
except ProgrammingError: # pragma: no cover
# database is not initialized yet
code = ''
if code not in CURRENCIES:
code = 'USD'
code = 'USD' # pragma: no cover
return code