chiark / gitweb /
Fix "stg branch --delete" on a nonexistent branch
[stgit] / stgit / stack.py
index 7fe9f2b618fc6b60b883cc1e009867b1451eceef..1f0129525aeba2f5713905988cb86ec51fd772e6 100644 (file)
@@ -661,7 +661,7 @@ class Series(PatchSet):
 
         try:
             git.delete_branch(self.get_name())
-        except GitException:
+        except git.GitException:
             out.warn('Could not delete branch "%s"' % self.get_name())
 
         config.remove_section('branch.%s' % self.get_name())