added som error handling for repo2github and open_repo