Update exception code in dispatcher.py for python >= 2.6