mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-10 02:09:11 -07:00
Cleanup some pyflakes warning (1 real error)
This commit is contained in:
parent
c6d44738ad
commit
0888d78b84
7 changed files with 8 additions and 9 deletions
4
lib/ansible/plugins/cache/jsonfile.py
vendored
4
lib/ansible/plugins/cache/jsonfile.py
vendored
|
@ -26,7 +26,7 @@ except ImportError:
|
|||
import json
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import *
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.parsing.utils.jsonify import jsonify
|
||||
from ansible.plugins.cache.base import BaseCacheModule
|
||||
from ansible.utils.unicode import to_bytes
|
||||
|
@ -140,7 +140,7 @@ class CacheModule(BaseCacheModule):
|
|||
pass
|
||||
try:
|
||||
os.remove("%s/%s" % (self._cache_dir, key))
|
||||
except (OSError,IOError) as e:
|
||||
except (OSError, IOError):
|
||||
pass #TODO: only pass on non existing?
|
||||
|
||||
def flush(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue