check for account ID param

This commit is contained in:
Christophe Benz 2010-11-16 15:14:26 +01:00 committed by Romain Bignon
commit e3cc16a156

View file

@ -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):