mirror of
https://github.com/clearml/clearml-agent
synced 2025-06-26 18:16:15 +00:00
Fix FileNotFoundException crash in find_python_executable_for_version (#164)
This commit is contained in:
parent
95dde6ca0c
commit
4f6f1e29d4
@ -3320,7 +3320,14 @@ class Worker(ServiceCommandSection):
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
except subprocess.CalledProcessError as ex:
|
||||
self.log.warning("error getting %s version: %s", executable, ex)
|
||||
# Windows return 9009 code and suggest to install Python from Windows Store
|
||||
if ex.returncode == 9009:
|
||||
self.log.debug("version not found: {}".format(ex))
|
||||
else:
|
||||
self.log.warning("error getting %s version: %s", executable, ex)
|
||||
continue
|
||||
except FileNotFoundError as ex:
|
||||
self.log.debug("version not found: {}".format(ex))
|
||||
continue
|
||||
|
||||
if not default_python:
|
||||
|
Loading…
Reference in New Issue
Block a user