handle exception thrown outside of git repos