mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Combine exception handling to simplify code (#29096)
This commit is contained in:
parent
15fd23c6be
commit
e1e2d08508
1 changed files with 8 additions and 9 deletions
1
lib/ansible/plugins/cache/__init__.py
vendored
1
lib/ansible/plugins/cache/__init__.py
vendored
|
@ -111,7 +111,6 @@ class BaseFileCacheModule(BaseCacheModule):
|
|||
raise KeyError
|
||||
|
||||
cachefile = "%s/%s" % (self._cache_dir, key)
|
||||
try:
|
||||
try:
|
||||
value = self._load(cachefile)
|
||||
self._cache[key] = value
|
||||
|
|
Loading…
Reference in a new issue