commands: Handle OverflowError in _int

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>