We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f37cfa commit 018b1d4Copy full SHA for 018b1d4
odml/templates.py
@@ -67,8 +67,9 @@ def cache_load(url):
67
if sys.version_info.major > 2:
68
data = data.decode("utf-8")
69
except (ValueError, URLError) as exc:
70
- print("Failed to load resource from '%s': %s" % (url, exc))
71
- raise
+ msg = "Failed to load resource from '%s': %s" % (url, exc)
+ exc.args = (msg,) # needs to be a tuple
72
+ raise exc
73
74
with open(cache_file, "w") as local_file:
75
local_file.write(str(data))
0 commit comments