From f52d63cc6ee3692990cf5f832de78a90e8341fe9 Mon Sep 17 00:00:00 2001 From: Markus Roth Date: Fri, 8 Nov 2013 22:39:25 +0100 Subject: [PATCH] Add debug information to exception. --- sloth/utils/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sloth/utils/__init__.py b/sloth/utils/__init__.py index 51e5e1a..b51841c 100644 --- a/sloth/utils/__init__.py +++ b/sloth/utils/__init__.py @@ -22,8 +22,7 @@ def toQImage(im, copy=False): elif im.shape[2] == 4: qim = QImage(im.data, im.shape[1], im.shape[0], im.strides[0], QImage.Format_ARGB32); return qim.copy() if copy else qim - - raise NotImplementedException + raise NotImplementedException('no conversion to QImage implemented for given image type (depth: %s, shape: %s)' % (im.dtype, im.shape)) def gen_colors(s=0.99, v=0.99, h=None, color_space='rgb', _golden_ratio_conjugate=0.618033988749895):