mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:58:59 +08:00
All good 20x http replies are now accepted
This commit is contained in:
parent
2724af7508
commit
8d7b813318
@ -1022,7 +1022,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
self._progress_message.hide()
|
||||
|
||||
elif reply.operation() == QNetworkAccessManager.PutOperation:
|
||||
if status_code == 204:
|
||||
if status_code in [200, 201, 202, 204]:
|
||||
pass # Request was successful!
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user