PiLite twitter example: correct error handling