Skip to content

Commit e14a39d

Browse files
committed
Fix for %tb magic.
1 parent 0291d61 commit e14a39d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

IPython/core/interactiveshell.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1971,14 +1971,9 @@ def magic(self, arg_s, next_input=None):
19711971
if next_input:
19721972
self.set_next_input(next_input)
19731973

1974-
args = arg_s.split(' ',1)
1975-
magic_name = args[0]
1974+
magic_name, _, magic_args = arg_s.partition(' ')
19761975
magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
19771976

1978-
try:
1979-
magic_args = args[1]
1980-
except IndexError:
1981-
magic_args = ''
19821977
fn = getattr(self,'magic_'+magic_name,None)
19831978
if fn is None:
19841979
error("Magic function `%s` not found." % magic_name)

0 commit comments

Comments
 (0)