Skip to content

Commit

Permalink
Merge pull request PennyDreadfulMTG#13489 from PennyDreadfulMTG/silen…
Browse files Browse the repository at this point in the history
…ce-export-errors

Thousands of errors here daily, full investigation later
  • Loading branch information
mergify[bot] authored Jan 12, 2025
2 parents ac14fa5 + 222a2be commit 06e45eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logsite/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def upload() -> Response:
@APP.route('/export/<match_id>/')
def export(match_id: int) -> tuple[str, int, dict[str, str]]:
local = match.get_match(match_id)
if local is None:
return return_json({'success': False})
text = '{format}\n{comment}\n{mods}\n{players}\n\n'.format(
format=local.format.name,
comment=local.comment,
Expand Down

0 comments on commit 06e45eb

Please sign in to comment.