add GbpNothingImported exception
authorGuido Günther <agx@sigxcpu.org>
Fri, 31 Oct 2008 08:51:48 +0000 (09:51 +0100)
committerGuido Guenther <agx@sigxcpu.org>
Fri, 31 Oct 2008 08:51:48 +0000 (09:51 +0100)
gbp/errors.py

index 74f0a552f32fabd4d97fa74dff7d61d3c3a00eb1..5aae8b5d281ee1bc1d9f297cb3ca8a5bcde1258a 100644 (file)
@@ -7,4 +7,9 @@ class GbpError(Exception):
     """Generic exception raised in git-buildpackage commands"""
     pass
 
+class GbpNothingImported(GbpError):
+    msg = "Nothing to commit, nothing imported."
+    def __str__(self):
+        return self.msg
+
 # vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: