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
2019-01-30 01:33:02 -02:00
committed by Philipp Moritz
parent 2887dac427
commit c9819a721d
+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 "