Skip to content

Commit

Permalink
chore: silence mypy /w aioshutil
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Sep 20, 2024
1 parent c8d2e5e commit 7e69ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/addons/delete_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def delete_addon_directory(addon_name: str, addon_version: str | None = No

version_dir = addon.addon_dir
try:
await aioshutil.rmtree(version_dir)
await aioshutil.rmtree(version_dir) # type: ignore
except Exception as e:
raise AyonException(
f"Failed to delete {addon_name} {addon_version} directory: {e}"
Expand All @@ -41,7 +41,7 @@ async def delete_addon_directory(addon_name: str, addon_version: str | None = No

if (addon_version is None) or is_empty:
try:
await aioshutil.rmtree(addon_dir)
await aioshutil.rmtree(addon_dir) # type: ignore
except Exception as e:
raise AyonException(f"Failed to delete {addon_name} directory: {e}")
library.data.pop(addon_name, None)
Expand Down

0 comments on commit 7e69ef3

Please sign in to comment.