Skip to content

Commit

Permalink
fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Landy committed Nov 16, 2024
1 parent fe8c36a commit 9a17b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traceback_with_variables/module_alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 9a17b18

Please sign in to comment.