From 69d9d85685c825e2431284625bd89e5cd6c97529 Mon Sep 17 00:00:00 2001 From: "yusuke.shinyama.dummy" Date: Sun, 17 Oct 2010 05:13:52 +0000 Subject: [PATCH] nunpack TypeError fix git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@246 1aa58f4a-7d42-0410-adbc-911cccaed67c --- pdfminer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfminer/utils.py b/pdfminer/utils.py index 88893c9..f2d32a8 100644 --- a/pdfminer/utils.py +++ b/pdfminer/utils.py @@ -98,7 +98,7 @@ def nunpack(s, default=0): elif l == 4: return unpack('>L', s)[0] else: - return TypeError('invalid length: %d' % l) + raise TypeError('invalid length: %d' % l) # decode_text PDFDocEncoding = ''.join( unichr(x) for x in (