Skip to content

Commit

Permalink
raise error when parser can't identify file_obj (#106)
Browse files Browse the repository at this point in the history
rather than an internal error that light_curve is not defined
  • Loading branch information
kecnry authored Apr 19, 2024
1 parent 3ec3916 commit 389d4d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lcviz/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def light_curve_parser(app, file_obj, data_label=None, show_in_viewer=True, **kw

elif isinstance(file_obj, cls_with_translator):
light_curve = file_obj
else:
raise NotImplementedError(f"could not parse light_curve with type {type(file_obj)}")

# make a data label:
if data_label is not None:
Expand Down

0 comments on commit 389d4d5

Please sign in to comment.