From 7d0895ecf38ae2150346027d1b2c295a7be1c88c Mon Sep 17 00:00:00 2001 From: Yannis Spiliopoulos Date: Sun, 24 Jul 2016 12:41:34 -0400 Subject: [PATCH] Small bugfix when checking python version --- rq/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/worker.py b/rq/worker.py index f4dec4a..179e22f 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -736,7 +736,7 @@ class HerokuWorker(Worker): imminent_shutdown_delay = 6 frame_properties = ['f_code', 'f_lasti', 'f_lineno', 'f_locals', 'f_trace'] - if sys.version_info[:2] <= (3, 0): + if sys.version_info[:2] < (3, 0): frame_properties.extend( ['f_exc_traceback', 'f_exc_type', 'f_exc_value', 'f_restricted'] )