From 39767a2c7da3b22efc8d90623dcda12b6ab4f419 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Mon, 20 Jan 2014 02:58:25 -0500 Subject: [PATCH] fixed possible crash introduced by prior commit --- p2pool/data.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/p2pool/data.py b/p2pool/data.py index 7c44878..e8fe347 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -430,7 +430,7 @@ class OkayTracker(forest.Tracker): try: share.check(self) except: - log.err(None, 'Share check failed: %064x -> %064x' % (share.hash, share.previous_hash)) + log.err(None, 'Share check failed: %064x -> %064x' % (share.hash, share.previous_hash if share.previous_hash is not None else 0)) return False else: self.verified.add(share) -- 1.7.1