diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 1d61ce876..acf1eb84e 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1072,8 +1072,7 @@ def app_checkport(port): # This import cannot be moved on top of file because it create a recursive # import... from yunohost.tools import tools_port_available - availability = tools_port_available(port) - if availability["available"]: + if tools_port_available(port): logger.success(m18n.n('port_available', port=int(port))) else: raise MoulinetteError(errno.EINVAL,