give mapname a default value, although failing to parse the mapname is never expected to happen.

This commit is contained in:
onyx-and-iris 2026-02-21 13:55:30 +00:00
parent 71401c32f9
commit 004f1d0880

View File

@ -67,7 +67,7 @@ class Writable:
table.add_column('QPort', justify='center')
table.add_column('Rate', justify='center')
mapname = ''
mapname = 'unable to parse map name'
for line in status_response.splitlines():
if m := self.RE_PLAYER_FROM_STATUS.match(line):
table.add_row(