try:
os.execvp('sqlite3', args)
except OSError, er:
if er.errno == 2: #file not found
raise OSError, _("sqlite3 executable not found. Is it installed?")
else:
raise
except:
raise
In the above code, the except statement catches the OSError but what does the er variable stand for?
EDIT: this one only excepts OSError; is there a way to except any error and get the exception object for it?
eris the actual exception object that got caught by theexceptclause.