diff --git a/InvenTree/plugin/base/integration/mixins.py b/InvenTree/plugin/base/integration/mixins.py index 8c702fcf01..86e3092e4f 100644 --- a/InvenTree/plugin/base/integration/mixins.py +++ b/InvenTree/plugin/base/integration/mixins.py @@ -433,9 +433,9 @@ class APICallMixin: def has_api_call(self): """Is the mixin ready to call external APIs?""" if not bool(self.API_URL_SETTING): - raise ValueError("API_URL_SETTING must be defined") + raise MixinNotImplementedError("API_URL_SETTING must be defined") if not bool(self.API_TOKEN_SETTING): - raise ValueError("API_TOKEN_SETTING must be defined") + raise MixinNotImplementedError("API_TOKEN_SETTING must be defined") return True @property