boxedice/sd-agent — pull request #18 by robelkin (2012-03-14 13:44:15+00:00)
Title: [AGENT-192] catch the value error if the used or available value can't be parsed to ...

...an int

I wanted to try and find a way to remove all those "except:" lines and combine them into one, and use "except Exception, e:" and print out the generic error and include the type of exception being thrown, but I couldn't find a way to get the type from the Exception "e" without doing some mad "sys.exc_info()" slice thing. If someone knows of a way to do that, let me know. Google only pointed me to the slicing.