redo Status SetMessage so it defaults to success and danger is a force in the setting of the message, to fix BUG-52 where a success message ended up with danger colour somehow -- might not perfectly fix it, but its neater and if it does not fix it, then its a timing issue I am not sure how to test/fix
This commit is contained in:
3
job.py
3
job.py
@@ -81,8 +81,7 @@ def WakePAJobManager():
|
||||
s.connect((PA_JOB_MANAGER_HOST, PA_JOB_MANAGER_PORT))
|
||||
s.close()
|
||||
except Exception as e:
|
||||
st.SetAlert("danger")
|
||||
st.SetMessage("Failed to connect to job manager, has it crashed? Exception was:{}".format(e))
|
||||
st.SetMessage(f"Failed to connect to job manager, has it crashed? Exception was:{e}", "danger")
|
||||
return
|
||||
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user