fix errno import. Fixes #450

This commit is contained in:
clinton-hall 2014-06-27 07:31:37 +09:30
commit b730e13f14

View file

@ -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