Skip to content

Commit

Permalink
refactor: add string encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pthompson127 authored and aliabbasrizvi committed Jul 21, 2020
1 parent 7b01de7 commit cc57cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimizely/project_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, datafile, logger, error_handler):
"""

config = json.loads(datafile)
self._datafile = str(datafile)
self._datafile = datafile.encode('utf-8')
self.logger = logger
self.error_handler = error_handler
self.version = config.get('version')
Expand Down

0 comments on commit cc57cd4

Please sign in to comment.