Skip to content

Commit 4ac6159

Browse files
niklubCopilot
andauthored
Update label_studio/io_storages/base_models.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 935ff9d commit 4ac6159

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

label_studio/io_storages/base_models.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,10 @@ def _scan_and_create_links(self, link_class):
435435
except (UnicodeDecodeError, json.decoder.JSONDecodeError) as exc:
436436
logger.debug(exc, exc_info=True)
437437
logger.warning(
438-
f'Error loading JSON from file "{key}".\nIf you\'re trying to import non-JSON data '
439-
f'(images, audio, text, etc.), edit storage settings and enable '
440-
f'"Treat every bucket object as a source file"'
438+
'Error loading JSON from file %s: %s. If you\'re trying to import non-JSON data '
439+
'(images, audio, text, etc.), edit storage settings and enable '
440+
'"Treat every bucket object as a source file"',
441+
key, exc
441442
)
442443
continue
443444

0 commit comments

Comments
 (0)