##// END OF EJS Templates
replace warning with UsageError
Robert Marchman -
Show More
@@ -2125,7 +2125,7 b' class InteractiveShell(SingletonConfigurable):'
2125 2125 'did you mean that instead?)' % magic_name )
2126 2126 error(etpl % (magic_name, extra))
2127 2127 elif cell == '':
2128 warn('%%%%%s line but no cell' % magic_name)
2128 raise UsageError('%%%%%s has line but no cell' % magic_name)
2129 2129 else:
2130 2130 # Note: this is the distance in the stack to the user's frame.
2131 2131 # This will need to be updated if the internal calling logic gets
General Comments 0
You need to be logged in to leave comments. Login now