Skip to content
Snippets Groups Projects
Commit d594345b authored by Tim Repke's avatar Tim Repke
Browse files

make warnings more graceful

parent adf949e6
No related branches found
No related tags found
1 merge request!40Master
from fastapi import status as http_status
class DataNotFoundWarning(Warning): class DataNotFoundWarning(Warning):
pass status = http_status.HTTP_204_NO_CONTENT
class NoDataForKeyError(Exception): class NoDataForKeyError(Exception):
...@@ -23,7 +26,7 @@ class AnnotationSchemeNotFoundError(Exception): ...@@ -23,7 +26,7 @@ class AnnotationSchemeNotFoundError(Exception):
class NoNextAssignmentWarning(Warning): class NoNextAssignmentWarning(Warning):
pass status = http_status.HTTP_204_NO_CONTENT
class AssignmentScopeNotFoundError(Exception): class AssignmentScopeNotFoundError(Exception):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment