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:
|
try:
|
||||||
applists = app_listlists()['lists']
|
applists = app_listlists()['lists']
|
||||||
applists[0]
|
applists[0]
|
||||||
except IOError, IndexError:
|
except (IOError, IndexError):
|
||||||
app_fetchlists()
|
app_fetchlists()
|
||||||
applists = app_listlists()['lists']
|
applists = app_listlists()['lists']
|
||||||
|
|
||||||
|
@ -527,7 +527,7 @@ def app_install(auth, app, label=None, args=None):
|
||||||
raise
|
raise
|
||||||
except MoulinetteError:
|
except MoulinetteError:
|
||||||
raise
|
raise
|
||||||
except KeyboardInterrupt, EOFError:
|
except (KeyboardInterrupt, EOFError):
|
||||||
raise MoulinetteError(errno.EINTR, m18n.g('operation_interrupted'))
|
raise MoulinetteError(errno.EINTR, m18n.g('operation_interrupted'))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug('app installation failed', exc_info=1)
|
logger.debug('app installation failed', exc_info=1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue