mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
beeing safe with wrong / unknown setttings
This commit is contained in:
parent
53ce848145
commit
4503f23ae4
@ -13,8 +13,10 @@ def get_exchange_rate_backend():
|
|||||||
|
|
||||||
if 'InvenTreeManualExchangeBackend' in inventree_settings.EXCHANGE_BACKEND:
|
if 'InvenTreeManualExchangeBackend' in inventree_settings.EXCHANGE_BACKEND:
|
||||||
return InvenTreeManualExchangeBackend()
|
return InvenTreeManualExchangeBackend()
|
||||||
else:
|
elif 'InvenTreeFixerExchangeBackend' in inventree_settings.EXCHANGE_BACKEND:
|
||||||
return InvenTreeFixerExchangeBackend()
|
return InvenTreeFixerExchangeBackend()
|
||||||
|
else:
|
||||||
|
raise ImproperlyConfigured('Exchange Backend wrongly configured')
|
||||||
|
|
||||||
|
|
||||||
class InvenTreeManualExchangeBackend(BaseExchangeBackend):
|
class InvenTreeManualExchangeBackend(BaseExchangeBackend):
|
||||||
|
Loading…
Reference in New Issue
Block a user