upload can only create (#21513)

pull/21516/head
Greg Hogan 4 years ago committed by GitHub
parent 7d59129c28
commit d066b8f7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/loggerd/uploader.py

@ -176,7 +176,7 @@ class Uploader():
else:
cloudlog.debug("uploading %r", fn)
stat = self.normal_upload(key, fn)
if stat is not None and stat.status_code in (200, 201, 412):
if stat is not None and stat.status_code in (200, 201, 403, 412):
cloudlog.event("upload_success" if stat.status_code != 412 else "upload_ignored", key=key, fn=fn, sz=sz, debug=True)
try:
# tag file as uploaded

Loading…
Cancel
Save