TLE icon indicating copy to clipboard operation
TLE copied to clipboard

;duel history crash

Open krofna opened this issue 4 years ago • 1 comments

  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'

krofna avatar Jan 16 '21 18:01 krofna

I think we have a similar issue, except it just fails silently without throwing an error.

See ;duel history Denjell image

PotatoHashing avatar Jan 18 '21 20:01 PotatoHashing