withdraw: catch lack of parameter for !resolve

This commit is contained in:
moneromooo
2015-02-11 18:42:41 +00:00
parent 4dd13feef6
commit 051a0d3d86
+2
View File
@@ -237,6 +237,8 @@ def Withdraw(link,cmd):
def Resolve(link,cmd):
try:
address=GetParam(cmd,1)
if not address:
raise RuntimeError("")
except Exception,e:
link.send('usage: !resolve <address>')
return