From e3cc16a156cafa1efe8f1314807e39c6071150c3 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Tue, 16 Nov 2010 15:14:26 +0100 Subject: [PATCH] check for account ID param --- weboob/applications/boobank/boobank.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index 141c2c32..d89ef771 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -134,6 +134,9 @@ class Boobank(ReplApplication): Display old operations. """ id, backend_name = self.parse_id(id) + if not id: + print >>sys.stderr, 'Error: please give an account ID (hint: use list command)' + return 1 names = (backend_name,) if backend_name is not None else None def do(backend):