mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-28 08:51:44 -07:00
Merge pull request #6480 from do3cc/patch-1
Properly catch import errors in apt
This commit is contained in:
commit
b2350d8aaf
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ HAS_PYTHON_APT = True
|
||||||
try:
|
try:
|
||||||
import apt
|
import apt
|
||||||
import apt_pkg
|
import apt_pkg
|
||||||
except:
|
except ImportError:
|
||||||
HAS_PYTHON_APT = False
|
HAS_PYTHON_APT = False
|
||||||
|
|
||||||
def package_split(pkgspec):
|
def package_split(pkgspec):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue