From 6a01aac48719d89a507b4e84a0fdfe88c3085e64 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 21:53:18 +0200 Subject: [PATCH] chore(formatting): Fixed formatting mistakes (#1174) * fixed formatting mistakes have sneaked into prod * Apply suggestions from code review --------- Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com> Co-authored-by: Frank Elsinga --- data/processors/export.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/data/processors/export.py b/data/processors/export.py index a894ccf7c..2821b0273 100644 --- a/data/processors/export.py +++ b/data/processors/export.py @@ -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(): @@ -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: