1
0
Fork 0
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:
Toshio Kuratomi 2017-09-07 10:20:44 -07:00 committed by ansibot
parent 15fd23c6be
commit e1e2d08508

View file

@ -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