Skip to content

Commit

Permalink
Resources loaded from Github may be in bytes format, added conversion…
Browse files Browse the repository at this point in the history
… check
  • Loading branch information
Chaffelson committed Sep 29, 2018
1 parent fb45752 commit 6c14f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whoville/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def _recurse_github_dir(g_repo, r_tgt, r_ref):
out[obj.name] = _recurse_github_dir(g_repo, obj.path, r_ref)
elif obj.type == 'file':
if obj.name.rsplit('.')[1] not in ['yaml', 'json']:
out[obj.name] = obj.decoded_content
out[obj.name] = obj.decoded_content.decode('utf-8')
else:
out[obj.name] = load(obj.decoded_content)
return out
Expand Down

0 comments on commit 6c14f47

Please # to comment.