Actually die when neither okapy nor PIL can be found

Logging doesn't work at this point and the tool is quite useless without
being able to load images anyway...
This commit is contained in:
Mika Fischer
2011-10-05 16:36:30 +02:00
parent f0bc05ead5
commit db32df3b0d
+1 -1
View File
@@ -29,7 +29,7 @@ except:
from PIL import Image
_use_pil = True
except:
LOG.warn("Could neither find PIL nor okapy. Sloth needs one of them for loading images.")
raise RuntimeError("Could neither find PIL nor okapy. Sloth needs one of them for loading images.")
class AnnotationContainerFactory: