mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 04:39:03 +08:00
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:
committed by
Philipp Moritz
parent
2887dac427
commit
c9819a721d
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user