mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-25 07:21:43 -07:00
apt: use to_native instead of str for exc (#37595)
This commit is contained in:
parent
64dfaf9cda
commit
5be9315603
1 changed files with 1 additions and 1 deletions
|
@ -857,7 +857,7 @@ def get_cache(module):
|
||||||
# try again
|
# try again
|
||||||
cache = apt.Cache()
|
cache = apt.Cache()
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=to_native(e))
|
||||||
return cache
|
return cache
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue