Skip to content

Commit 547e2a0

Browse files
node_id underscore bug fix
1 parent 1b82a7e commit 547e2a0

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

Framework/Utilities/RequestFormatter.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,12 @@ def Get(resource_path, payload=None, **kwargs):
210210
**kwargs
211211
).json()
212212

213-
except requests.exceptions.RequestException:
214-
print(
215-
"Exception in UpdateGet: Authentication Failed. Please check your server, username and password. "
216-
"Please include full server name. Example: https://zeuz.zeuz.ai.\n"
217-
"If you are using IP Address: Type in just the IP without http. Example: 12.15.10.6"
218-
)
213+
except requests.exceptions.RequestException as e:
214+
print(e)
219215
return ""
220216

221217
except Exception as e:
222-
print("Get Exception: {}".format(e))
218+
print(e)
223219
return {}
224220

225221

server/status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class StatusResponse(BaseModel):
3737
def status():
3838
try:
3939
node_id = CommonUtil.MachineInfo().getLocalUser().lower()
40-
username, id = node_id.split("_")
40+
username, id = node_id.split("_", 1)
4141
if len(username) == 0:
4242
node_id = id
4343
except Exception:

0 commit comments

Comments
 (0)