]> arthur.barton.de Git - bup.git/commit
CatPipe.get: don't throw MissingObject; return None
authorRob Browning <rlb@defaultvalue.org>
Sun, 3 Sep 2017 22:11:52 +0000 (17:11 -0500)
committerRob Browning <rlb@defaultvalue.org>
Thu, 21 Sep 2017 04:59:30 +0000 (23:59 -0500)
commit3b0118f648a9cdeb8c7388952a8193207fb15b33
tree600646ec30c22280f9dbab51c39c07fa68d96d8a
parentdcce4f6e98c248d71961d54c82354fe1df3db45f
CatPipe.get: don't throw MissingObject; return None

This will be more heavily used later and exceptions are notably more
expensive.  Further, a missing object isn't necessarily an error.
It's perfectly reasonable to attempt to check an object's existence
via get().

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py