SHARE
TWEET

Untitled

a guest Jun 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top