git.samba.org
/
jelmer
/
dulwich-libgit2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add check() methods to object classes for consistency checking.
[jelmer/dulwich-libgit2.git]
/
dulwich
/
errors.py
diff --git
a/dulwich/errors.py
b/dulwich/errors.py
index 873eaeb6bae1ac00147457fd9eff4fd833bdf04a..dec7c2e0aa7a04447a7926ef17dcfe22ed6f0783 100644
(file)
--- a/
dulwich/errors.py
+++ b/
dulwich/errors.py
@@
-123,5
+123,9
@@
class PackedRefsException(FileFormatException):
"""Indicates an error parsing a packed-refs file."""
+class ObjectFormatException(FileFormatException):
+ """Indicates an error parsing an object."""
+
+
class NoIndexPresent(Exception):
"""No index is present."""