Commit cd71da21 authored by Jim Fulton's avatar Jim Fulton

Fixed name error in error handling logic.

parent d0ba2f3f
...@@ -173,10 +173,12 @@ class ExportImport: ...@@ -173,10 +173,12 @@ class ExportImport:
while 1: while 1:
h=read(16) h=read(16)
if h==export_end_marker: break if h==export_end_marker: break
if len(h) != 16: raise ExportError, 'Truncated export file' if len(h) != 16:
raise POSException.ExportError, 'Truncated export file'
l=u64(h[8:16]) l=u64(h[8:16])
p=read(l) p=read(l)
if len(p) != l: raise ExportError, 'Truncated export file' if len(p) != l:
raise POSException.ExportError, 'Truncated export file'
ooid=h[:8] ooid=h[:8]
if oids: if oids:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment