0
0
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:
William Dizon
2015-05-19 15:48:59 -07:00
parent dc67dbf8b0
commit 4af834c240

View File

@@ -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'])