mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Merge pull request #1462 from clinton-hall/hotfix/gitless
Fix IOError on cleanup when git not found
This commit is contained in:
commit
5a04a7b4d9
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ def clean_bytecode():
|
|||
print(result)
|
||||
except subprocess.CalledProcessError as error:
|
||||
sys.exit('Error Code: {}'.format(error.returncode))
|
||||
except OSError as error:
|
||||
except (IOError, OSError) as error:
|
||||
sys.exit('Error: {}'.format(error))
|
||||
else:
|
||||
return result
|
||||
|
@ -70,7 +70,7 @@ def clean_folders(*paths):
|
|||
)
|
||||
except subprocess.CalledProcessError as error:
|
||||
sys.exit('Error Code: {}'.format(error.returncode))
|
||||
except OSError as error:
|
||||
except (IOError, OSError) as error:
|
||||
sys.exit('Error: {}'.format(error))
|
||||
else:
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue