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))