Use the more explicit (and common) exc instead of e as the variable holding the exception in except handlers.