Update worker.py

merge https://github.com/nvie/rq/commit/39ce12f9c3a989226c5d4adb213d1fb2da36d297