TLE
TLE copied to clipboard
;duel history crash
File "/home/ec2-user/TLE/tle/cogs/duel.py", line 418, in _paginate_duels
return [make_page(chunk) for chunk in paginator.chunkify(data, 7)]
File "/home/ec2-user/TLE/tle/cogs/duel.py", line 418, in <listcomp>
return [make_page(chunk) for chunk in paginator.chunkify(data, 7)]
File "/home/ec2-user/TLE/tle/cogs/duel.py", line 411, in make_page
log_str = '\n'.join(make_line(entry) for entry in chunk)
File "/home/ec2-user/TLE/tle/cogs/duel.py", line 411, in <genexpr>
log_str = '\n'.join(make_line(entry) for entry in chunk)
File "/home/ec2-user/TLE/tle/cogs/duel.py", line 404, in make_line
return f'{idstr if show_id else str()}[{name}]({problem.url}) [{problem.rating}] won by [{winner.handle}]({winner.url}) vs [{loser.handle}]({loser.url}) {when} in {duel_time}'
AttributeError: 'NoneType' object has no attribute 'handle'
I think we have a similar issue, except it just fails silently without throwing an error.
See ;duel history Denjell