mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] this error can also occur and is fixed by regenerating the cache https://paste.yunohost.org/uvojidumik.rb (reported from support chan)
This commit is contained in:
parent
9bf2642539
commit
cbd2c1611c
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ class ActionsMap(object):
|
|||
with open(actionsmap_pkl) as f:
|
||||
actionsmaps[n] = pickle.load(f)
|
||||
# TODO: Switch to python3 and catch proper exception
|
||||
except IOError:
|
||||
except (IOError, EOFError):
|
||||
self.use_cache = False
|
||||
actionsmaps = self.generate_cache(namespaces)
|
||||
elif use_cache: # cached file doesn't exists
|
||||
|
|
Loading…
Add table
Reference in a new issue