swap to sys exit
Browse files- manage branches.py +3 -3
manage branches.py
CHANGED
|
@@ -92,13 +92,13 @@ while True:
|
|
| 92 |
Either set the environment variable to a 'WRITE' token or remove it.
|
| 93 |
''')
|
| 94 |
input("Press enter to continue.")
|
| 95 |
-
exit()
|
| 96 |
if os.environ.get('COLAB_BACKEND_VERSION', None) is not None:
|
| 97 |
print('''
|
| 98 |
Your Colab secret key is read-only
|
| 99 |
Please switch your key to 'write' or disable notebook access on the left.
|
| 100 |
-
For now, you are stuck in a loop
|
| 101 |
''')
|
|
|
|
| 102 |
elif os.environ.get('KAGGLE_KERNEL_RUN_TYPE', None) is not None:
|
| 103 |
print('''
|
| 104 |
Your Kaggle secret key is read-only
|
|
@@ -156,7 +156,7 @@ if yorn == 'y':
|
|
| 156 |
delete_branch(repo, repo_type=r_type, branch=branch)
|
| 157 |
else:
|
| 158 |
print("Cancelled action")
|
| 159 |
-
exit()
|
| 160 |
clear_screen()
|
| 161 |
|
| 162 |
#extra information for the user
|
|
|
|
| 92 |
Either set the environment variable to a 'WRITE' token or remove it.
|
| 93 |
''')
|
| 94 |
input("Press enter to continue.")
|
| 95 |
+
sys.exit("Exiting...")
|
| 96 |
if os.environ.get('COLAB_BACKEND_VERSION', None) is not None:
|
| 97 |
print('''
|
| 98 |
Your Colab secret key is read-only
|
| 99 |
Please switch your key to 'write' or disable notebook access on the left.
|
|
|
|
| 100 |
''')
|
| 101 |
+
sys.exit("Stuck in a loop, exiting...")
|
| 102 |
elif os.environ.get('KAGGLE_KERNEL_RUN_TYPE', None) is not None:
|
| 103 |
print('''
|
| 104 |
Your Kaggle secret key is read-only
|
|
|
|
| 156 |
delete_branch(repo, repo_type=r_type, branch=branch)
|
| 157 |
else:
|
| 158 |
print("Cancelled action")
|
| 159 |
+
sys.exit("Exiting...")
|
| 160 |
clear_screen()
|
| 161 |
|
| 162 |
#extra information for the user
|