Skip to content
Browse files

models: added a special case to avoid bombing out under app engine

  • Loading branch information...
1 parent 4f1f181 commit 7e9ab8ab80ec3142dc8a0bf81de6e73b72a0f681 @trey0 trey0 committed May 29, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 geocamCore/models.py
View
6 geocamCore/models.py
@@ -20,7 +20,11 @@
from geocamUtil.models.ExtrasField import ExtrasField
from geocamUtil.models.UuidField import UuidField
from geocamUtil.models.managers import AbstractModelManager, FinalModelManager
-from geocamUtil.icons import getIconSize, getIconUrl
+try:
+ from geocamUtil.icons import getIconSize, getIconUrl
+except ImportError:
+ # PIL is not available on app engine; for some apps we can do without
+ pass
from geocamCore import settings

0 comments on commit 7e9ab8a

Please sign in to comment.
Something went wrong with that request. Please try again.