From d2941ed60b7e65683ecaa8774c0e5e9e7dad2d4b Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Fri, 28 Jun 2013 12:18:56 -0400 Subject: [PATCH] fixed crash when running in --debug mode --- p2pool/data.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/p2pool/data.py b/p2pool/data.py index d6386d0..f9615f7 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -520,7 +520,7 @@ class OkayTracker(forest.Tracker): if p2pool.DEBUG: print 'Desire %i shares. Cutoff: %s old diff>%.2f' % (len(desired), math.format_dt(time.time() - timestamp_cutoff), bitcoin_data.target_to_difficulty(target_cutoff)) for peer_addr, hash, ts, targ in desired: - print ' ', '%s:%i' % peer_addr, format_hash(hash), math.format_dt(time.time() - ts), bitcoin_data.target_to_difficulty(targ), ts >= timestamp_cutoff, targ <= target_cutoff + print ' ', None if peer_addr is None else '%s:%i' % peer_addr, format_hash(hash), math.format_dt(time.time() - ts), bitcoin_data.target_to_difficulty(targ), ts >= timestamp_cutoff, targ <= target_cutoff return best, [(peer_addr, hash) for peer_addr, hash, ts, targ in desired if ts >= timestamp_cutoff], decorated_heads -- 1.7.1