Skip to content

Commit

Permalink
Fix error-handling oversight in removing 'TABEL' segment
Browse files Browse the repository at this point in the history
  • Loading branch information
supposedly committed Apr 16, 2018
1 parent 02ffc27 commit 1ce959d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magic/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def parse(fp):
parts[segment].append(line)

try:
parts['@TABLE'] = AbstractTabel(parts.pop('@TABEL'))
parts['@TABLE'] = AbstractTabel(parts['@TABEL'])
except KeyError:
raise TabelValueError(None, "No '@TABEL' segment found")
except TabelException as exc:
Expand Down

0 comments on commit 1ce959d

Please sign in to comment.