Skip to content

Commit

Permalink
Add except for if incorrect type used in lookup_name_from_id() to pre…
Browse files Browse the repository at this point in the history
…vent errors
  • Loading branch information
The-inside-man committed Jul 12, 2021
1 parent 6b4a00d commit a1ed815
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimizely/optimizely_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def lookup_name_from_id(self, audience_id, audiences_map):
name = audiences_map[audience_id]
except KeyError:
name = audience_id
except TypeError:
name = ""

return name

Expand Down

0 comments on commit a1ed815

Please sign in to comment.