mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Added better logging when DL fails
In some specific cases DL sends broken json payload even if response.ok. Handle parsing of broken json better.
This commit is contained in:
parent
2b6d705c44
commit
beedfd2ece
1 changed files with 3 additions and 1 deletions
|
|
@ -631,7 +631,9 @@ class AbstractSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
try:
|
||||
result = response.json()
|
||||
except json.decoder.JSONDecodeError:
|
||||
self.log.warning("Broken response {}".format(response))
|
||||
msg = "Broken response {}. ".format(response)
|
||||
msg += "Try restarting DL webservice"
|
||||
self.log.warning()
|
||||
raise RuntimeError("Broken response from DL")
|
||||
|
||||
# for submit publish job
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue