mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] misc, better error message
I'm using repr to be able to detect if it's a string or a number since it's an error I'm expecting
This commit is contained in:
parent
85930163a0
commit
ded4895b7e
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class IPDiagnoser(Diagnoser):
|
|||
elif protocol == 6:
|
||||
url = 'https://ip6.yunohost.org'
|
||||
else:
|
||||
raise ValueError("invalid protocol version")
|
||||
raise ValueError("invalid protocol version, it should be either 4 or 6 and was '%s'" % repr(protocol))
|
||||
|
||||
try:
|
||||
return download_text(url, timeout=30).strip()
|
||||
|
|
Loading…
Add table
Reference in a new issue