From cbd2c1611cd115f6ac2bb282adb802fac6818372 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 20 Jul 2018 14:11:29 +0200 Subject: [PATCH] [fix] this error can also occur and is fixed by regenerating the cache https://paste.yunohost.org/uvojidumik.rb (reported from support chan) --- moulinette/actionsmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/actionsmap.py b/moulinette/actionsmap.py index 5951ca59..807eab14 100644 --- a/moulinette/actionsmap.py +++ b/moulinette/actionsmap.py @@ -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