Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

;duel history crash #433

Open
krofna opened this issue Jan 16, 2021 · 1 comment
Open

;duel history crash #433

krofna opened this issue Jan 16, 2021 · 1 comment

Comments

@krofna
Copy link
Collaborator

krofna commented Jan 16, 2021

  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'
@PotatoHashing
Copy link
Contributor

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

See ;duel history Denjell
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants