inkstitch / pyembroidery

libembroidery/EmbroideryFormats converted to python
MIT License
72 stars 28 forks source link

catch TypeError too #47

Closed lexelby closed 5 years ago

lexelby commented 5 years ago

If you pass a single float or integer as the scale, it'll raise a TypeError, so let's catch that too.

tatarize commented 5 years ago

Entirely right. And it was supposed to work that way given the attempt at the attribute and catching the attribute then trying to use it as a single value. Subscriptable lack is typeerror.