diff --git a/traceback_with_variables/module_alias.py b/traceback_with_variables/module_alias.py index cecb825..cbbd478 100644 --- a/traceback_with_variables/module_alias.py +++ b/traceback_with_variables/module_alias.py @@ -40,12 +40,12 @@ def create_alias(alias: str, module_name: str) -> None: try: os.symlink(str(module_path), str(module_path.parent / alias)) - except FileExistsError as e: + except FileExistsError: raise ValueError('the needed file system location already occupied') def rm_alias(alias: str) -> None: module_path = module_name_to_path(alias) if not module_path.is_symlink(): - raise ValueError(f'the module is not an alias') + raise ValueError('the module is not an alias') os.remove(str(module_path))