From 389d4d5e983d5d90e4d340725c82532862a1484f Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Fri, 19 Apr 2024 11:31:17 -0400 Subject: [PATCH] raise error when parser can't identify file_obj (#106) rather than an internal error that light_curve is not defined --- lcviz/parsers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lcviz/parsers.py b/lcviz/parsers.py index c29a41e4..31cfe870 100644 --- a/lcviz/parsers.py +++ b/lcviz/parsers.py @@ -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: