[28640] in Source-Commits
build-system commit: compare_against_git: Also catch TypeError
daemon@ATHENA.MIT.EDU (System T. Builder)
Fri Jun 24 16:27:50 2016
Date: Fri, 24 Jun 2016 16:27:46 -0400
From: "System T. Builder" <builder@mit.edu>
Message-Id: <201606242027.u5OKRknW023943@drugstore.mit.edu>
To: source-commits@mit.edu
https://github.com/mit-athena/build-system/commit/daff5f6613c6a267ecf6679fe30ae91f2c3d3ba9
commit daff5f6613c6a267ecf6679fe30ae91f2c3d3ba9
Author: Anders Kaseorg <andersk@mit.edu>
Date: Fri Jun 24 16:27:35 2016 -0400
compare_against_git: Also catch TypeError
Because checkout_cache can be None.
dabuildsys/apt.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dabuildsys/apt.py b/dabuildsys/apt.py
index 9f57bd8..457b4df 100644
--- a/dabuildsys/apt.py
+++ b/dabuildsys/apt.py
@@ -303,7 +303,7 @@ def compare_against_git(apt_repo, update_all=False, checkout_cache=None):
checkout = checkout_cache[package]
if not checkout:
continue
- except KeyError:
+ except (TypeError, KeyError):
checkout = PackageCheckout(package, full_clean=update_all)
if use_cache:
checkout_cache[package] = checkout