clear-skies 1.19.23__py3-none-any.whl → 1.19.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of clear-skies might be problematic. Click here for more details.
- {clear_skies-1.19.23.dist-info → clear_skies-1.19.24.dist-info}/METADATA +1 -1
- {clear_skies-1.19.23.dist-info → clear_skies-1.19.24.dist-info}/RECORD +5 -5
- clearskies/handlers/base.py +6 -0
- {clear_skies-1.19.23.dist-info → clear_skies-1.19.24.dist-info}/LICENSE +0 -0
- {clear_skies-1.19.23.dist-info → clear_skies-1.19.24.dist-info}/WHEEL +0 -0
|
@@ -127,7 +127,7 @@ clearskies/functional/string.py,sha256=HHXou_lyjntX7SMi0-hfe91Kk3grxQnU-7oi4Lon3
|
|
|
127
127
|
clearskies/functional/validations.py,sha256=f1fTQ4rdFZouxoovAPg-YAgf0Q0QNpKEzxWWL7EFUHI,645
|
|
128
128
|
clearskies/handlers/__init__.py,sha256=9tH0zk4g7Mt22opD1NlynqXwwMX2DHzLmAVihZsJsfU,1011
|
|
129
129
|
clearskies/handlers/advanced_search.py,sha256=UbWDntGAGD5NM61yKEws5MfG0Xy3K_fn-i-X9FG-mKs,13746
|
|
130
|
-
clearskies/handlers/base.py,sha256=
|
|
130
|
+
clearskies/handlers/base.py,sha256=aFRm5R6oDJWO4TTxz9BusxuDF3aH_-QVGJUP9atNzLc,22787
|
|
131
131
|
clearskies/handlers/callable.py,sha256=2pVMwllttNui4R5vlLpufPehAPL_ksh-5eBrUprNv8U,8113
|
|
132
132
|
clearskies/handlers/create.py,sha256=xj_hVYma2sKDK5Vq_R9wo8f0ZXfGlXTkYU71AMyKF2U,1232
|
|
133
133
|
clearskies/handlers/crud_by_method.py,sha256=BOkPX-LUvQrbRLSbyTfRh4c8nPF51dZEXSKOl7m9ZYA,435
|
|
@@ -200,7 +200,7 @@ clearskies/tests/simple_api/models/__init__.py,sha256=nUA0W6fgXw_Bxa9CudkaDkC80t
|
|
|
200
200
|
clearskies/tests/simple_api/models/status.py,sha256=PEhPbaQh5qdUNHp8O0gz91LOLENAEBtqSaHxUPXchaM,699
|
|
201
201
|
clearskies/tests/simple_api/models/user.py,sha256=5_P4Tp1tTdX7PkMJ__epPM5MA7JAeVYGas69vcWloLc,819
|
|
202
202
|
clearskies/tests/simple_api/users_api.py,sha256=KYXCgEofDxHeRdQK67txN5oYUPvxxmB8JTku7L-apk4,2344
|
|
203
|
-
clear_skies-1.19.
|
|
204
|
-
clear_skies-1.19.
|
|
205
|
-
clear_skies-1.19.
|
|
206
|
-
clear_skies-1.19.
|
|
203
|
+
clear_skies-1.19.24.dist-info/LICENSE,sha256=3Ehd0g3YOpCj8sqj0Xjq5qbOtjjgk9qzhhD9YjRQgOA,1053
|
|
204
|
+
clear_skies-1.19.24.dist-info/METADATA,sha256=eGI0jca4nmoK_VD4ADFjcJoGIDMMxOkauHWj7p2anL8,1712
|
|
205
|
+
clear_skies-1.19.24.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
206
|
+
clear_skies-1.19.24.dist-info/RECORD,,
|
clearskies/handlers/base.py
CHANGED
|
@@ -195,6 +195,12 @@ class Base(ABC):
|
|
|
195
195
|
return self.error(input_output, str(client_error), 400)
|
|
196
196
|
except exceptions.InputError as input_error:
|
|
197
197
|
return self.input_errors(input_output, input_error.errors)
|
|
198
|
+
except exceptions.Authentication as auth_error:
|
|
199
|
+
return self.error(input_output, str(auth_error), 401)
|
|
200
|
+
except exceptions.Authorization as auth_error:
|
|
201
|
+
return self.error(input_output, str(auth_error), 403)
|
|
202
|
+
except exceptions.NotFound as auth_error:
|
|
203
|
+
return self.error(input_output, str(auth_error), 404)
|
|
198
204
|
|
|
199
205
|
return response
|
|
200
206
|
|
|
File without changes
|
|
File without changes
|