I have a command in a try clause which I know throws an exception. I\'m trying to catch it in an \"except\" clause, but the except clause seems to not recognize the existen
You probably just need to import the HTTPError class before using it. Try inserting at the top of your actions.py file:
HTTPError
from urllib2 import HTTPError
and then you should be able to use your code as is.