-
Improvement
-
Resolution: Fixed
-
Normal
-
None
-
None
We do capture or log 400 (BadRequest) client errors by default. However, sometimes we wish to do that. Hence, we have a helper function called log_raise_400 which logs an error message and then raises a 400 error. Note that this function always raises and exception, however pycharm or other type checkers cannot detect this and give lots of false positives like.
However, this is not possible.
Add a type hint to the log_raise_400 function so that these false positive warnings can be eliminated.