mirror of
https://github.com/onyx-and-iris/q3rcon-tui.git
synced 2026-02-26 11:09:11 +00:00
give mapname a default value, although failing to parse the mapname is never expected to happen.
This commit is contained in:
parent
71401c32f9
commit
004f1d0880
@ -67,7 +67,7 @@ class Writable:
|
|||||||
table.add_column('QPort', justify='center')
|
table.add_column('QPort', justify='center')
|
||||||
table.add_column('Rate', justify='center')
|
table.add_column('Rate', justify='center')
|
||||||
|
|
||||||
mapname = ''
|
mapname = 'unable to parse map name'
|
||||||
for line in status_response.splitlines():
|
for line in status_response.splitlines():
|
||||||
if m := self.RE_PLAYER_FROM_STATUS.match(line):
|
if m := self.RE_PLAYER_FROM_STATUS.match(line):
|
||||||
table.add_row(
|
table.add_row(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user