diff --git a/checkout.py b/checkout.py index 62f04d42b..a303b338a 100644 --- a/checkout.py +++ b/checkout.py @@ -76,7 +76,8 @@ class PatchApplicationFailed(Exception): out.append('Failed to apply patch for %s:' % self.filename) if self.status: out.append(self.status) - out.append('Patch: %s' % self.patch.dump()) + if self.patch: + out.append('Patch: %s' % self.patch.dump()) return '\n'.join(out)