Skip to content

Commit

Permalink
chore(formatting): Fixed formatting mistakes (#1174)
Browse files Browse the repository at this point in the history
* fixed formatting mistakes have sneaked into prod

* Apply suggestions from code review

---------

Co-authored-by: CommanderStorm <[email protected]>
Co-authored-by: Frank Elsinga <[email protected]>
  • Loading branch information
3 people authored May 14, 2024
1 parent 89cd937 commit 6a01aac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions data/processors/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ def _make_sure_is_safe(obj: object):
for name in removed_names:
if name in content and allowed_variation not in content:
raise RuntimeError(
f"{name} was purposely renamed due to NS context. "
"Please make sure it is not included"
f"{name} was purposely renamed due to NS context. Please make sure it is not included"
)
elif isinstance(obj, dict):
for key, val in obj.items():
Expand All @@ -151,7 +150,7 @@ def _make_sure_is_safe(obj: object):
elif isinstance(obj, bool) or isinstance(obj, int) or isinstance(obj, float) or obj is None:
pass
else:
raise ValueError(f"unhandled type: {str(type(obj))}")
raise ValueError(f"unhandled type: {type(obj)}")


def export_for_api(data: dict, path: str) -> None:
Expand Down

0 comments on commit 6a01aac

Please sign in to comment.