mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Misc UI work. Colored jobs. Error handling.
This commit is contained in:
@@ -110,7 +110,11 @@ def get_job_file(job_id, filename):
|
||||
|
||||
@server.get('/api/jobs')
|
||||
def jobs_json():
|
||||
return [x.json() for x in RenderQueue.all_jobs()]
|
||||
try:
|
||||
return [x.json() for x in RenderQueue.all_jobs()]
|
||||
except Exception as e:
|
||||
logger.exception(f"Exception fetching all_jobs: {e}")
|
||||
return [], 500
|
||||
|
||||
|
||||
@server.get('/api/jobs/<status_val>')
|
||||
|
||||
Reference in New Issue
Block a user