瀏覽代碼

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

junhuanchen 1 年之前
父節點
當前提交
5275e279ad
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)