From e89fb24a65107d1a01354aacf1a48cb426023233 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 16 Apr 2013 12:21:38 +0900 Subject: [PATCH] Support short lists as callback param --- boxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes.py b/boxes.py index ad929b5..b987fc0 100755 --- a/boxes.py +++ b/boxes.py @@ -41,7 +41,7 @@ class Boxes: callback = callback[number] if callable(callback): callback() - except KeyError: + except (KeyError, IndexError): pass except: self.ctx.restore()