bypass exception when attaching in receive.py