Support short lists as callback param

This commit is contained in:
Florian Festi 2013-04-16 12:21:38 +09:00
parent dc02a0d86b
commit e89fb24a65
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class Boxes:
callback = callback[number]
if callable(callback):
callback()
except KeyError:
except (KeyError, IndexError):
pass
except:
self.ctx.restore()