Skip to content

Commit

Permalink
Corrected except statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Agranya Ketha committed Sep 13, 2023
1 parent 88818fc commit b76fe91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ontogpt/io/csv_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def output_parser(obj: Any, file) -> None:
adapter_str = "sqlite:obo:" + str(prefix)
curr_adapter = get_adapter(adapter_str)
trimmed_dict[key][index] = curr_adapter.label(elem)
except:
KeyError
except KeyError:
continue

def write_obj_as_csv(obj: Any, file, minimize=True, index_field=None) -> None:
if isinstance(obj, BaseModel):
Expand Down

0 comments on commit b76fe91

Please sign in to comment.