fix AttributeError error when redis not configured