Commits

Anonymous committed 4719db4

unrecognized color fix for newer MagickWand

Comments (0)

Files changed (1)

pystacia/color/_impl.py

         c_call(color, 'set_color', value)
     except PystaciaException:
         info = exc_info()
-        if info[1].args[0].startswith('unrecognized color'):
+        e = info[1].args[0]
+        if (e.startswith('unrecognized color') or
+            e.startswith('UnrecognizedColor')):
             raise PystaciaException('Unknown color string representation')
 
         reraise(*info)