mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Multiple exceptions syntax.
This commit is contained in:
parent
0fb7295e8e
commit
a37fa9ed5d
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ def app_list(offset=None, limit=None, filter=None, raw=False):
|
|||
try:
|
||||
applists = app_listlists()['lists']
|
||||
applists[0]
|
||||
except IOError, IndexError:
|
||||
except (IOError, IndexError):
|
||||
app_fetchlists()
|
||||
applists = app_listlists()['lists']
|
||||
|
||||
|
@ -527,7 +527,7 @@ def app_install(auth, app, label=None, args=None):
|
|||
raise
|
||||
except MoulinetteError:
|
||||
raise
|
||||
except KeyboardInterrupt, EOFError:
|
||||
except (KeyboardInterrupt, EOFError):
|
||||
raise MoulinetteError(errno.EINTR, m18n.g('operation_interrupted'))
|
||||
except Exception as e:
|
||||
logger.debug('app installation failed', exc_info=1)
|
||||
|
|
Loading…
Add table
Reference in a new issue