Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 3332965

Browse files
Ryan SepassiCopybara-Service
authored andcommitted
Print which module had an ImportError
PiperOrigin-RevId: 200643604
1 parent 41c16e6 commit 3332965

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tensor2tensor/data_generators/all_problems.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def _handle_errors(errors):
8888
for module, err in errors:
8989
err_str = str(err)
9090
if err_str != _py_err_msg(module):
91+
print("From module %s" % module)
9192
raise err
9293
if log_all:
9394
print("Did not import module: %s; Cause: %s" % (module, err_str))

0 commit comments

Comments
 (0)