mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Merge pull request #226 from frju365/patch-1
[fix] Return nothing if argument is already set.
This commit is contained in:
commit
d1ea1b606f
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ class CommentParameter(_ExtraParameter):
|
||||||
skipped_iface = ["api"]
|
skipped_iface = ["api"]
|
||||||
|
|
||||||
def __call__(self, message, arg_name, arg_value):
|
def __call__(self, message, arg_name, arg_value):
|
||||||
|
if arg_value:
|
||||||
|
return
|
||||||
return msignals.display(m18n.n(message))
|
return msignals.display(m18n.n(message))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue