Permalink
Browse files

catch PIL ImportError

  • Loading branch information...
1 parent e7c397d commit 9546e817f94dd9a061931fbf817a18b0dc2281e7 @marinkaz committed Nov 9, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 nimfa/examples/cbcl_images.py
  2. +1 −1 nimfa/examples/orl_images.py
@@ -93,7 +93,7 @@
from PIL.Image import open, fromarray, new
from PIL.ImageOps import expand
except ImportError, exc:
- raise SystemExit("PIL must be installed to run this example.")
+ warn("PIL must be installed to run CBCL images example.")
def run():
@@ -104,7 +104,7 @@
from PIL.Image import open, fromarray, new
from PIL.ImageOps import expand
except ImportError, exc:
- raise SystemExit("PIL must be installed to run this example.")
+ warn("PIL must be installed to run ORL images example.")
def run():

0 comments on commit 9546e81

Please sign in to comment.