mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
All good 20x http replies are now accepted
This commit is contained in:
parent
2724af7508
commit
8d7b813318
1 changed files with 1 additions and 1 deletions
|
@ -1022,7 +1022,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
self._progress_message.hide()
|
self._progress_message.hide()
|
||||||
|
|
||||||
elif reply.operation() == QNetworkAccessManager.PutOperation:
|
elif reply.operation() == QNetworkAccessManager.PutOperation:
|
||||||
if status_code == 204:
|
if status_code in [200, 201, 202, 204]:
|
||||||
pass # Request was successful!
|
pass # Request was successful!
|
||||||
else:
|
else:
|
||||||
Logger.log("d", "Something went wrong when trying to update data of API (%s). Message: %s Statuscode: %s", reply_url, reply.readAll(), status_code)
|
Logger.log("d", "Something went wrong when trying to update data of API (%s). Message: %s Statuscode: %s", reply_url, reply.readAll(), status_code)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue