" KeyError: 'app' " when upgrading Tools

Hello,

From some weeks, I have " KeyError: ‘app’ " feedback when upgrading Tools:

# yunohost tools upgrade
Warning: unable to upgrade apps: [Errno 61] No app to upgrade
Traceback (most recent call last):                                                                                                                    
  File "/usr/bin/yunohost", line 219, in <module>                                                                                                     
    timeout=opts.timeout,                                                                                                                             
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 136, in cli                                                                    
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)                                                                     
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 390, in run                                                              
    ret = self.actionsmap.process(args, timeout=timeout)                                                                                              
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 495, in process                                                              
    return func(**arguments)                                                                                                                          
  File "/usr/lib/moulinette/yunohost/tools.py", line 514, in tools_upgrade                                                                            
    logger.error(m18n.n('app_upgrade_failed'))                                                                                                        
  File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 205, in n                                                                          
    return self._namespaces[self._current_namespace].translate(key, *args, **kwargs)                                                                  
  File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 92, in translate                                                                   
    return self._translations[self.locale][key].encode('utf-8').format(*args, **kwargs)                                                               
KeyError: 'app'                        

What could explain such behavior? Any idea to fix that?
Thanks!

Hellow,

that’s a known bug which has been fixed in 2.7.3 (which is still in testing). AFAIK it’s not really a big issue (you’re not loosing any data or anything from this I think)) :wink:

I will wait for the 2.7.3 release to get it fixed.
Thanks for the feedback!