mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #310 from YunoHost/fix_app_checkport
[fix] app_checkport was broken.
This commit is contained in:
commit
0877da9438
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
|
||||
# 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,
|
||||
|
|
Loading…
Add table
Reference in a new issue