# NOISY-DEBUG: print(f"DEBUG: software='{software}' - CALLED!")
if not "." in software:
print(f"WARNING: software='{software}' does not contain a version number.")
- raise
+ return software
version = None
if " " in software:
return software
# NOISY-DEBUG: print(f"DEBUG: Found valid version number: '{version}', removing it ...")
- end = len(software) - len(version)
+ end = len(software) - len(version) - 1
# NOISY-DEBUG: print(f"DEBUG: end[{type(end)}]={end}")
software = software[0:end].strip()
if not res.ok or res.status_code >= 400:
print("WARNING: Cannot query JSON API:", domain, path, data, res.status_code)
update_last_error(domain, res)
- raise
+ else:
+ update_last_nodeinfo(domain)
+ json = res.json()
- update_last_nodeinfo(domain)
- json = res.json()
except BaseException as e:
print("WARNING: Some error during post():", domain, path, data, e)