How to know which exception type to catch in python?
<p>A general exception catcher logs this <a href="http://pastebin.com/vF5zdvsR" rel="nofollow">http://pastebin.com/vF5zdvsR</a> exception.</p>

<p>I would like to know the specific exception name so I could add a dedicated catch to it.
How can it be found?</p>

<p>Is there a 'type' function on the caught exception or should it be found in the throwing lib's source - available at: <a href="https://github.com/mLewisLogic/foursquare/blob/master/foursquare/__init__.py" rel="nofollow">https://github.com/mLewisLogic/foursquare/blob/master/foursquare/__init__.py</a></p>

<p>Thank you</p>
