From 1ce959dac1cab119b6675cd1ef810c3655a566f7 Mon Sep 17 00:00:00 2001 From: Eli Date: Sun, 15 Apr 2018 19:02:27 -0700 Subject: [PATCH] Fix error-handling oversight in removing 'TABEL' segment --- magic/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magic/parser.py b/magic/parser.py index e69738d..0b7e677 100644 --- a/magic/parser.py +++ b/magic/parser.py @@ -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: