Skip to content

Commit

Permalink
Add missing error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cpbotha committed Jul 2, 2024
1 parent fa6b178 commit b781df8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions org_roam_canvas/utils_emacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ def get_or_node_details(or_node_id: str):

return output_dict

else:
logging.error(
f"Unable to parse `file:` and `html:` from emacsclient: {output}"
)
raise HTTPException(status_code=404, detail="No file: found")

else:
logging.error(f"Unable to parse output from emacsclient: {output}")
raise HTTPException(status_code=404, detail="No node found")

0 comments on commit b781df8

Please sign in to comment.