From 96c3c209343bcd070fb3cf58858858a5973d213e 2013-03-24 16:40:50 From: Takafumi Arakaki Date: 2013-03-24 16:40:50 Subject: [PATCH] Use UsageError for non-local exit + error message --- diff --git a/IPython/core/magics/execution.py b/IPython/core/magics/execution.py index 7139485..1f131ba 100644 --- a/IPython/core/magics/execution.py +++ b/IPython/core/magics/execution.py @@ -647,8 +647,7 @@ python-profiler package from non-free.""") "after trying up to line: %s.\n" "Please set a valid breakpoint manually " "with the -b option." % bp) - error(msg) - return + raise UsageError(msg) # if we find a good linenumber, set the breakpoint deb.do_break('%s:%s' % (bp_file, bp_line))