Add error handling to alloc_color
Merge branch 'devel' of github.com:leonnnn/pyxtrlock into devel