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
1 changed files with 2 additions and 0 deletions

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