Fix crash when `git` command is not available

A missing `except:` clause caused pylearn2 to crash the moment a class is constructed when git is not installed.
Use `except Exception:` instead of `except:`
Merge pull request #937 from bartvm/patch-1

Fix crash when `git` command is not available