From cfc181eed193e2d8a1cf840e1e197fbe017472ac Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 7 Jul 2020 21:46:16 +0200 Subject: [PATCH] sources/oauth: fix wrong comparions closes #118 --- passbook/sources/oauth/types/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passbook/sources/oauth/types/manager.py b/passbook/sources/oauth/types/manager.py index 3db0b1bde..7200130b8 100644 --- a/passbook/sources/oauth/types/manager.py +++ b/passbook/sources/oauth/types/manager.py @@ -50,9 +50,9 @@ class SourceTypeManager: return self.__source_types[kind.value][source.provider_type] LOGGER.warning("no matching type found, using default") # Return defaults - if kind.value == RequestKind.callback: + if kind == RequestKind.callback: return OAuthCallback - if kind.value == RequestKind.redirect: + if kind == RequestKind.redirect: return OAuthRedirect raise KeyError( f"Provider Type {source.provider_type} (type {kind.value}) not found."