Fixed bare except -it's a no-no according to PEP8