mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] app_checkport was broken.
This commit is contained in:
parent
dfee06404e
commit
00d9b9ee86
1 changed files with 1 additions and 2 deletions
|
@ -1072,8 +1072,7 @@ def app_checkport(port):
|
||||||
# This import cannot be moved on top of file because it create a recursive
|
# This import cannot be moved on top of file because it create a recursive
|
||||||
# import...
|
# import...
|
||||||
from yunohost.tools import tools_port_available
|
from yunohost.tools import tools_port_available
|
||||||
availability = tools_port_available(port)
|
if tools_port_available(port):
|
||||||
if availability["available"]:
|
|
||||||
logger.success(m18n.n('port_available', port=int(port)))
|
logger.success(m18n.n('port_available', port=int(port)))
|
||||||
else:
|
else:
|
||||||
raise MoulinetteError(errno.EINVAL,
|
raise MoulinetteError(errno.EINVAL,
|
||||||
|
|
Loading…
Add table
Reference in a new issue