mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
ignore in coverage
This commit is contained in:
parent
5587c04d0d
commit
92398d7b39
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user