Raw excepts are a really really bad idea, and almost . You should really try to catch a more specific error.