##// END OF EJS Templates
new style formatting for magic-not-found warning
Robert Marchman -
Show More
@@ -2120,10 +2120,10 b' class InteractiveShell(SingletonConfigurable):'
2120 fn = self.find_cell_magic(magic_name)
2120 fn = self.find_cell_magic(magic_name)
2121 if fn is None:
2121 if fn is None:
2122 lm = self.find_line_magic(magic_name)
2122 lm = self.find_line_magic(magic_name)
2123 etpl = "Cell magic function `%%%%%s` not found%s."
2123 etpl = "Cell magic function `%%{0}` not found{1}."
2124 extra = '' if lm is None else (' (But line magic `%%%s` exists, '
2124 extra = '' if lm is None else (' (But line magic `%{0}` exists, '
2125 'did you mean that instead?)' % magic_name )
2125 'did you mean that instead?)'.format(magic_name))
2126 error(etpl % (magic_name, extra))
2126 error(etpl.format(magic_name, extra))
2127 elif cell == '':
2127 elif cell == '':
2128 raise UsageError('%%{0} (with double %) expects code beneath it. '
2128 raise UsageError('%%{0} (with double %) expects code beneath it. '
2129 'Did you mean %{0} (single %)?'.format(magic_name))
2129 'Did you mean %{0} (single %)?'.format(magic_name))
General Comments 0
You need to be logged in to leave comments. Login now