mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
fix errno import. Fixes #450
This commit is contained in:
parent
ed4e8ae830
commit
b730e13f14
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
import copy
|
import copy
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
import errno
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
import nzbtomedia
|
import nzbtomedia
|
||||||
|
@ -92,7 +93,7 @@ class autoProcessTV:
|
||||||
os.makedirs(dirName) # Attempt to create the directory
|
os.makedirs(dirName) # Attempt to create the directory
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
# Re-raise the error if it wasn't about the directory not existing
|
# Re-raise the error if it wasn't about the directory not existing
|
||||||
if exception.errno != errno.EEXIST:
|
if e.errno != errno.EEXIST:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# Check video files for corruption
|
# Check video files for corruption
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue