From 78b8d2a6ef7d0b5234a6432f603fbb5d1aebca51 Mon Sep 17 00:00:00 2001 From: Marko Mrdjenovic Date: Thu, 8 May 2014 13:35:41 +0200 Subject: [PATCH] kwargs must be strings, unicode fails with "keywords must be strings" --- rq/compat/dictconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/compat/dictconfig.py b/rq/compat/dictconfig.py index c314afb..56321bc 100644 --- a/rq/compat/dictconfig.py +++ b/rq/compat/dictconfig.py @@ -487,7 +487,7 @@ class DictConfigurator(BaseConfigurator): 'address' in config: config['address'] = self.as_tuple(config['address']) factory = klass - kwargs = dict([(k, config[k]) for k in config if valid_ident(k)]) + kwargs = dict([(str(k), config[k]) for k in config if valid_ident(k)]) try: result = factory(**kwargs) except TypeError as te: