From 051a0d3d868f5222577401ba59cf8873ff1a0982 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Tue, 10 Feb 2015 23:48:54 +0000 Subject: [PATCH] withdraw: catch lack of parameter for !resolve --- tipbot/modules/withdraw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tipbot/modules/withdraw.py b/tipbot/modules/withdraw.py index f56c9c2..ecdcffe 100644 --- a/tipbot/modules/withdraw.py +++ b/tipbot/modules/withdraw.py @@ -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
') return