chiark / gitweb /
Fix "stg branch --delete" on a nonexistent branch
[stgit] / stgit / stack.py
index c2eb2de9e7292521a38fe1cbc4aaa17db3fe66ba..802a382ad0f7609c136d660daee6c05e28c68c1a 100644 (file)
@@ -755,7 +755,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())