From b0439267ea3f3027b88a21e25c7a452009116432 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 15 May 2022 04:12:57 +0200 Subject: [PATCH] fix error-type to use custom errors --- InvenTree/plugin/base/integration/mixins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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