mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added InstallationError to except block
This commit is contained in:
parent
baa274bca9
commit
20384a4810
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ def _check_pkg_version_format(pkg):
|
|||
break
|
||||
else:
|
||||
install_req = pip.req.InstallRequirement.from_line(pkg)
|
||||
except ValueError as exc:
|
||||
except (ValueError, InstallationError) as exc:
|
||||
ret['result'] = False
|
||||
if not from_vcs and '=' in pkg and '==' not in pkg:
|
||||
ret['comment'] = (
|
||||
|
|
Loading…
Add table
Reference in a new issue