mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Nowadays we don't have .errno anymore ?
This commit is contained in:
parent
3878ffdc04
commit
83d9e772e7
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ def api(namespaces, host='localhost', port=80, routes={},
|
|||
except MoulinetteError as e:
|
||||
import logging
|
||||
logging.getLogger(namespaces[0]).error(e.strerror)
|
||||
return e.errno
|
||||
return e.errno if hasattr(e, "errno") else 1
|
||||
except KeyboardInterrupt:
|
||||
import logging
|
||||
logging.getLogger(namespaces[0]).info(m18n.g('operation_interrupted'))
|
||||
|
|
Loading…
Reference in a new issue