Skip to content

Commit

Permalink
Casting name to string in case non string type for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
The-inside-man committed Jul 12, 2021
1 parent ec4218a commit 508f82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimizely/optimizely_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def lookup_name_from_id(self, audience_id, audiences_map):
'''
name = ""
try:
name = audiences_map[audience_id]
name = str(audiences_map[audience_id])
except KeyError:
name = audience_id
except TypeError:
Expand Down

0 comments on commit 508f82f

Please sign in to comment.