Update tempfile_services.py (#3896)

Fix an invalid reference to os.errno. errno have been removed from os in python 3.7. The fix only replaces it by the already imported errno.
This commit is contained in:
Bruno Morier authored and Philipp Moritz committed 2019-01-29 19:33:02 -08:00
1 parent 2887dac427
commit c9819a721d
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ def try_to_create_directory(directory_path):
try:
os.makedirs(directory_path)
except OSError as e:
if e.errno != os.errno.EEXIST:
if e.errno != errno.EEXIST:
raise e
logger.warning(
"Attempted to create '{}', but the directory already "