diff --git a/source/redis/redis/redis.stoq b/source/redis/redis/redis.stoq index be33678..d1e14e6 100644 --- a/source/redis/redis/redis.stoq +++ b/source/redis/redis/redis.stoq @@ -29,6 +29,6 @@ min_stoq_version = 0.10.13 # Does this plugin support multiprocessing? multiprocess = False -# Host of the RabbitMQ server +# Host of the Redis server redis_host = 127.0.0.1 redis_port = 6379 diff --git a/worker/slack/slack/slack.py b/worker/slack/slack/slack.py index dc62ef5..e9c0586 100644 --- a/worker/slack/slack/slack.py +++ b/worker/slack/slack/slack.py @@ -347,7 +347,8 @@ def get_user_info(self, id): # Use Slack's user.info API call to gather information on the user # that submitted the file userinfo = self.slackclient.api_call("users.info", **{'user': id}) - userinfo = self.stoq.loads(userinfo) + if type(userinfo) is not dict: + userinfo = self.stoq.loads(userinfo) # If an error was produced, return that instead if 'error' in userinfo: