Skip to content

Commit 2aa9e85

Browse files
committed
Print tracebacks when ignoring exceptions.
1 parent 1dced80 commit 2aa9e85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

schema_salad/ref_resolver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pathlib
55
import re
66
import tempfile
7+
import traceback
78
import urllib
89
import xml.sax # nosec
910
from io import StringIO
@@ -290,7 +291,9 @@ def add_schemas(self, ns: Union[List[str], str], base_url: str) -> None:
290291
try:
291292
content = self.fetch_text(fetchurl)
292293
except Exception as e:
294+
tb = traceback.format_exception(type(e), e, e.__traceback__)
293295
_logger.warning("Could not load extension schema %s: %s", fetchurl, str(e))
296+
_logger.debug(tb)
294297
continue
295298
newGraph = Graph()
296299
err_msg = "unknown error"

0 commit comments

Comments
 (0)