From 9a17b186adadf733b9cbab9d85136ba32ba07262 Mon Sep 17 00:00:00 2001 From: Andy Landy Date: Sat, 16 Nov 2024 21:07:49 +0000 Subject: [PATCH] fix flake --- traceback_with_variables/module_alias.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))