From d2ac0fb87d1e45563f5ca3fe334a493fe660a1fb Mon Sep 17 00:00:00 2001 From: Antoine Dao Date: Tue, 18 Aug 2020 12:04:39 +0100 Subject: [PATCH] fix(auth): pollination server now uses 403 instead of 401 for no-auth --- queenbee/config/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queenbee/config/auth.py b/queenbee/config/auth.py index 8095fa55..ec9e34be 100644 --- a/queenbee/config/auth.py +++ b/queenbee/config/auth.py @@ -61,7 +61,7 @@ def check_cached_token(self) -> str: auth_header=auth_header ) except HTTPError as err: - if err.code == 401: + if err.code == 403: return False else: raise err