Skip to content

Commit 60ef703

Browse files
committed
debug ci
1 parent 21f1e86 commit 60ef703

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/torchcodec/_core/ops.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ def load_torchcodec_shared_libraries():
6060
except Exception as e:
6161
# TODO: recording and reporting exceptions this way is OK for now as it's just for debugging,
6262
# but we should probably handle that via a proper logging mechanism.
63-
exceptions.append((ffmpeg_major_version, e))
63+
# debugging
64+
import traceback
65+
66+
full_traceback = "".join(
67+
traceback.format_exception(type(e), e, e.__traceback__)
68+
)
69+
exceptions.append((ffmpeg_major_version, f"{str(e)}\n{full_traceback}"))
6470

6571
traceback = (
6672
"\n[start of libtorchcodec loading traceback]\n"

0 commit comments

Comments
 (0)