mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-06-10 14:33:53 +02:00
Update modules/processors/frame/face_swapper.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user