whitespace, minor cleanups and fixes

This commit is contained in:
The MMGen Project 2025-12-08 14:57:31 +00:00
commit f5c165c362
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 61 additions and 57 deletions

View file

@ -353,7 +353,8 @@ class BlocksInfo:
nblocks, step = (add1, add2) if last is None else (None, add1)
if p.debug: msg(repr(self.range_data(first, last, from_tip, nblocks, step)))
if p.debug:
msg(repr(self.range_data(first, last, from_tip, nblocks, step)))
if nblocks:
if first is None:
@ -643,9 +644,7 @@ class BlocksInfo:
values = {n: d.func(n) for n in fnames}
col1_w = max((len(l) for l in lbls.values()), default=0) + 2
print(d.spec_vals)
for v in d.spec_vals:
print(v)
if v.condition(values):
try: idx = fnames.index(v.insert_after) + 1
except: idx = 0

View file

@ -970,8 +970,7 @@ class Ticker:
t = int(d[row.id]['last_updated'])
except TypeError as e:
d[row.id]['last_updated_fmt'] = gray('--' if 'NoneType' in str(e) else str(e))
except KeyError as e:
msg(str(e))
except KeyError:
pass
else:
t_fmt = d[row.id]['last_updated_fmt'] = fmt_func(