##// END OF EJS Templates
Merge pull request #1956 from minrk/move_import...
Min RK -
r7564:16dc1779 merge
parent child Browse files
Show More
@@ -1697,11 +1697,6 b' class InteractiveShell(SingletonConfigurable):'
1697 care of calling it if needed, so unless you are explicitly catching a
1697 care of calling it if needed, so unless you are explicitly catching a
1698 SyntaxError exception, don't try to analyze the stack manually and
1698 SyntaxError exception, don't try to analyze the stack manually and
1699 simply call this method."""
1699 simply call this method."""
1700 try:
1701 from IPython.parallel.error import RemoteError
1702 except ImportError:
1703 class RemoteError(Exception): pass
1704
1705
1700
1706 try:
1701 try:
1707 try:
1702 try:
@@ -1709,6 +1704,13 b' class InteractiveShell(SingletonConfigurable):'
1709 except ValueError:
1704 except ValueError:
1710 self.write_err('No traceback available to show.\n')
1705 self.write_err('No traceback available to show.\n')
1711 return
1706 return
1707
1708 # this import must be done *after* the above call,
1709 # to avoid affecting the exc_info
1710 try:
1711 from IPython.parallel.error import RemoteError
1712 except ImportError:
1713 class RemoteError(Exception): pass
1712
1714
1713 if etype is SyntaxError:
1715 if etype is SyntaxError:
1714 # Though this won't be called by syntax errors in the input
1716 # Though this won't be called by syntax errors in the input
General Comments 0
You need to be logged in to leave comments. Login now