Skip to content

Commit 94ce671

Browse files
author
Kevin Turner
committed
[project @ More explicit message when no ElementTree library can be imported]
1 parent d054c5f commit 94ce671

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎openid/oidutil.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def importElementTree(module_names=None):
7171
else:
7272
return ElementTree
7373
else:
74-
raise
74+
raise ImportError('No ElementTree library found. '
75+
'You may need to install one. '
76+
'Tried importing %r' % (module_names,)
77+
)
7578

7679
def log(message, level=0):
7780
"""Handle a log message from the OpenID library.

0 commit comments

Comments
 (0)