mirror of
https://github.com/clearml/clearml
synced 2025-02-14 16:46:12 +00:00
Fix RGBA upload with default JPEG files
This commit is contained in:
parent
031d26a6cf
commit
6991e06e14
@ -141,13 +141,14 @@ class Metrics(InterfaceBase):
|
|||||||
|
|
||||||
# prepare event needing file upload
|
# prepare event needing file upload
|
||||||
entries = []
|
entries = []
|
||||||
for ev in events:
|
for ev in events[:]:
|
||||||
try:
|
try:
|
||||||
e = update_and_get_file_entry(ev)
|
e = update_and_get_file_entry(ev)
|
||||||
if e:
|
if e:
|
||||||
entries.append(e)
|
entries.append(e)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
log.warning(str(ex))
|
log.warning(str(ex))
|
||||||
|
events.remove(ev)
|
||||||
|
|
||||||
# upload the needed files
|
# upload the needed files
|
||||||
if entries:
|
if entries:
|
||||||
|
Loading…
Reference in New Issue
Block a user