Umm watch out for the true fix!

This commit is contained in:
eeintech 2021-07-19 15:51:04 -04:00
parent 9acd57f8e0
commit 53f2aa107a

View File

@ -13,11 +13,12 @@ def currency_code_default():
"""
Returns the default currency code (or USD if not specified)
"""
from django.db.utils import ProgrammingError
from common.models import InvenTreeSetting
try:
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
except django.db.utils.ProgrammingError:
except ProgrammingError:
# database is not initialized yet
code = ''