mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 18:31:16 +00:00
beeing safe with wrong / unknown setttings
This commit is contained in:
1 parent
53ce848145
commit
4503f23ae4
1 file changed
+3
-1
@@ -13,8 +13,10 @@ def get_exchange_rate_backend():
|
||||
|
||||
if 'InvenTreeManualExchangeBackend' in inventree_settings.EXCHANGE_BACKEND:
|
||||
return InvenTreeManualExchangeBackend()
|
||||
else:
|
||||
elif 'InvenTreeFixerExchangeBackend' in inventree_settings.EXCHANGE_BACKEND:
|
||||
return InvenTreeFixerExchangeBackend()
|
||||
else:
|
||||
raise ImproperlyConfigured('Exchange Backend wrongly configured')
|
||||
|
||||
|
||||
class InvenTreeManualExchangeBackend(BaseExchangeBackend):
|
||||
|
||||
Reference in new issue
Block a user