fix #1531 (taken from https://github.com/taojy123/locust/commit/ce0e4d9f74884ce85fa6a3fce5de3b4ff257c112)
fix #1531 (taken from https://github.com/taojy123/locust/commit/ce0e4d9f74884ce85fa6a3fce5de3b4ff257c112)

locustio/locust,locustio/locust,mbeacom/locust,mbeacom/locust,locustio/locust,mbeacom/locust,locustio/locust,mbeacom/locust