mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 01:45:28 +00:00
CI was not completely fixed
This commit is contained in:
1 parent
c1db4c7b3d
commit
9acd57f8e0
2 files changed
+5
-2
No files matched your search
@@ -15,7 +15,11 @@ def currency_code_default():
|
||||
"""
|
||||
from common.models import InvenTreeSetting
|
||||
|
||||
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
|
||||
try:
|
||||
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
|
||||
except django.db.utils.ProgrammingError:
|
||||
# database is not initialized yet
|
||||
code = ''
|
||||
|
||||
if code not in CURRENCIES:
|
||||
code = 'USD'
|
||||
|
||||
Reference in new issue
Block a user