adding defensive coding for traffic func
adding defensive coding for traffic func

lianwangtao/magic-mirror-demo,MicrosoftEdge/magic-mirror-demo,MicrosoftEdge/magic-mirror-demo,lianwangtao/magic-mirror-demo