Improve the error handling a bit.
commit65aedafee0a5c4a1907af1ba6d2680414b2458f3
authorLukas Sandström <lukass@etek.chalmers.se>
Tue, 1 Jul 2008 16:56:13 +0000 (1 18:56 +0200)
committerLukas Sandström <lukass@etek.chalmers.se>
Tue, 1 Jul 2008 16:56:13 +0000 (1 18:56 +0200)
treedc17cc38d778d447466b7f15efedd3906811ca54
parentff460e66362760fd6846ff50f535d35773cd181e
Improve the error handling a bit.

Also make sure that Image instances are created before
we raise an exception, otherwise SWIG thinks that we are
leaking memory.

Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se>
pyfprint/pyfprint.py