diff --git a/xpartamupp/echelon.py b/xpartamupp/echelon.py index 3362fe5..72c3a91 100755 --- a/xpartamupp/echelon.py +++ b/xpartamupp/echelon.py @@ -678,10 +678,15 @@ def _iq_game_report_handler(self, iq): if not iq['from'].resource.startswith('0ad'): return + iq_r = iq.reply() + try: self.report_manager.add_report(iq['from'], iq['gamereport']['game']) except Exception: logger.exception("Failed to update game statistics for %s", iq['from'].bare) + iq_r["error"]["condition"] = "internal-server-error" + + iq_r.send() rating_messages = self.leaderboard.get_rating_messages() if rating_messages: