mirror of
https://github.com/wassname/sloth.git
synced 2026-07-07 13:53:04 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user