Browse files

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

  • Loading branch information...
trey0 committed May 29, 2012
1 parent 4f1f181 commit 7e9ab8ab80ec3142dc8a0bf81de6e73b72a0f681
Showing with 5 additions and 1 deletion.
  1. +5 −1 geocamCore/
@@ -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
+ 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.