Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

catch PIL ImportError

  • Loading branch information...
commit 9546e817f94dd9a061931fbf817a18b0dc2281e7 1 parent e7c397d
Marinka Zitnik authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  nimfa/examples/cbcl_images.py
  2. +1 −1  nimfa/examples/orl_images.py
2  nimfa/examples/cbcl_images.py
View
@@ -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():
2  nimfa/examples/orl_images.py
View
@@ -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():
Please sign in to comment.
Something went wrong with that request. Please try again.