Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def foo():
  2.  
  3. try:
  4.  
  5. git.Repo.clone_from('non_existant_repo_URL',os.getcwd()+'\something')
  6.  
  7. except:
  8.  
  9. print('success!')
  10.  
  11. def foo():
  12.  
  13. try:
  14. git.Repo.clone_from('non_existant_repo_URL',os.getcwd()+'\something')
  15.  
  16. except <Exception or git.exc.GitError> as e:
  17.  
  18. print('success!')
  19.  
  20. Cmd('git') failed due to: exit code(128)
  21. cmdline: git clone -v non_existant_repo_URL <working directory>
  22. stderr: 'Cloning into '<working directory>'...
  23. remote: Repository non_existant_repo_URL not found
  24. fatal: repository 'non_existant_repo_URL' not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement