checkout add to try block for python2.6