Pārlūkot izejas kodu

更新 'backup/preset/app/checkout.py'

junhuanchen 1 gadu atpakaļ
vecāks
revīzija
5275e279ad
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      backup/preset/app/checkout.py

+ 1 - 1
backup/preset/app/checkout.py

@@ -15,7 +15,7 @@ def checkout(rep, branch):
     r = repo.Repo(rep)
     try:
         porcelain.checkout_branch(r, 'origin/' + branch)
-    except porcelain.CheckoutError as e::
+    except porcelain.CheckoutError as e:
         print("CheckoutError:", e)
         porcelain.reset(r, 'hard')
         porcelain.checkout_branch(r, 'origin/' + branch)