mirror of
https://github.com/hexparrot/mineos
synced 2025-10-06 00:02:56 +02:00
fixes issue: servers with hyphens bug out webui
if an invalid server name is now detected, it will gracefully continue to other servers.
This commit is contained in:
@@ -54,7 +54,10 @@ class ViewModel(object):
|
||||
def status(self):
|
||||
servers = []
|
||||
for i in self.server_list():
|
||||
instance = mc(i, self.login, self.base_directory)
|
||||
try:
|
||||
instance = mc(i, self.login, self.base_directory)
|
||||
except ValueError:
|
||||
continue #fails valid_server_name
|
||||
|
||||
try:
|
||||
java_xmx = int(instance.server_config['java':'java_xmx'])
|
||||
|
Reference in New Issue
Block a user