def checksum(self):
        total = 0
        
        # Add together all bytes
        for byte in self.data:
            total += byteToInt(byte)
            
        # Only keep the last byte
        total = total & 0xFF
        
        return intToByte(0xFF - total)
Default exception handler: move the job to the failed queue.
dataset/ETHPy150Open thom-nic/python-xbee/xbee/frame.py/APIFrame.checksum--crossover with--dataset/ETHPy150Open bretth/django-pq/pq/worker.py/Worker.move_to_failed_queue