Skip to content

Commit

Permalink
Merge pull request #1158 from ioam/reraise
Browse files Browse the repository at this point in the history
Fixed reraising of plotting exceptions
  • Loading branch information
jlstevens committed Feb 27, 2017
2 parents 727bf58 + d29f892 commit 26feb9f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions holoviews/ipython/display_hooks.py
Expand Up @@ -136,9 +136,12 @@ def wrapped(element):
return "<b>{name}</b>{msg}<br>{message}".format(msg=msg, **info)

except Exception as e:
t, v, tb = sys.exc_info()
try: option_state(element, state=optstate)
except: pass
raise
except Exception: pass
if sys.version_info[0] < 3:
raise (t, v, tb)
raise v.with_traceback(tb)
return wrapped


Expand Down

0 comments on commit 26feb9f

Please sign in to comment.