From 589419a572a33a2a50ac3fd61edff21ea324aaef Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 14 May 2024 21:53:05 +0200 Subject: [PATCH] Apply suggestions from code review --- data/processors/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/processors/export.py b/data/processors/export.py index 745d24645..2821b0273 100644 --- a/data/processors/export.py +++ b/data/processors/export.py @@ -136,7 +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(): @@ -150,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: {type(obj)!s}") + raise ValueError(f"unhandled type: {type(obj)}") def export_for_api(data: dict, path: str) -> None: