Skip to content

Commit

Permalink
Catch docstring yaml parse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaxxl committed Nov 19, 2024
1 parent db34193 commit cd101e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safrs/safrs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Class_API(SAFRSRestAPI):
try:
object_doc = parse_object_doc(safrs_object)
except Exception as exc:
log.error(f"Failed to parse docstring {exc}")
safrs.log.error(f"Failed to parse docstring {exc}")
object_doc = {}
object_doc["name"] = safrs_object._s_collection_name
self._swagger_object["tags"].append(object_doc)
Expand Down

0 comments on commit cd101e4

Please sign in to comment.