Skip to content
Myr

explicitly catch marshal errors rather than genertic exception #281

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tim Hanus · committed by Tim Hanus · parent f00ded9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/bccache.py+1 added-1 removed
86 unmodified lines
87 return88 # if marshal_load fails then we need to reload89 try:90 self.code = marshal_load(f)91 except:91 except (EOFError, ValueError, TypeError):92 self.reset()93 return9495 def write_bytecode(self, f):
221 unmodified lines