Update modules/processors/frame/face_swapper.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
pull/1189/head
David Strouk 2025-05-04 17:06:09 +03:00 committed by GitHub
parent ae88412aae
commit 647c5f250f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ def pre_check() -> bool:
# Make sure the models directory exists, catch permission errors if they occur
try:
os.makedirs(download_directory_path, exist_ok=True)
except PermissionError as e:
except OSError as e:
logging.error(f"Failed to create directory {download_directory_path} due to permission error: {e}")
return False