withdraw: catch lack of parameter for !resolve

This commit is contained in:
moneromooo 2015-02-10 23:48:54 +00:00
parent 4dd13feef6
commit 051a0d3d86

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