diff --git a/mpcontribs-client/mpcontribs/client/__init__.py b/mpcontribs-client/mpcontribs/client/__init__.py index 613698100..501616fa3 100644 --- a/mpcontribs-client/mpcontribs/client/__init__.py +++ b/mpcontribs-client/mpcontribs/client/__init__.py @@ -1521,7 +1521,7 @@ def init_columns(self, columns: dict = None) -> dict: for u in [existing_unit, new_unit]: try: conv_args.append(ureg.Unit(u)) - except ValueError as ex: + except ValueError: raise MPContribsClientError( f"Can't convert {existing_unit} to {new_unit} for {path}" )