Commits

Maciej Fijalkowski committed ca0dcdb

insist a bit more on displayng loops

  • Participants
  • Parent commits c870554

Comments (0)

Files changed (1)

File bin/jitviewer.py

                 except (IOError, OSError):
                     source = CodeReprNoFile(loop)
             else:
-                source = CodeRepr(inspect.getsource(code), code, loop)
+                try:
+                    source = CodeRepr(inspect.getsource(code), code, loop)
+                except:
+                    source = CodeReprNoFile(loop)
         d = {'html': flask.render_template('loop.html',
                                            source=source,
                                            current_loop=no,