mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
handle invalid version in zip gracefully
This commit is contained in:
parent
5be6803ace
commit
3addbe5ba6
1 changed files with 6 additions and 2 deletions
|
|
@ -972,8 +972,12 @@ class BootstrapRepos:
|
|||
"openpype/version.py") as version_file:
|
||||
zip_version = {}
|
||||
exec(version_file.read(), zip_version)
|
||||
version_check = OpenPypeVersion(
|
||||
version=zip_version["__version__"])
|
||||
try:
|
||||
version_check = OpenPypeVersion(
|
||||
version=zip_version["__version__"])
|
||||
except ValueError as e:
|
||||
self._print(str(e), True)
|
||||
return False
|
||||
|
||||
version_main = version_check.get_main_version() # noqa: E501
|
||||
detected_main = detected_version.get_main_version() # noqa: E501
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue