Skip to content

Commit

Permalink
fix: add quotes to str in tn-cli:encode_to_bytes
Browse files Browse the repository at this point in the history
- fixes "resolve" and "pub" commands
  • Loading branch information
queses committed Feb 19, 2023
1 parent 8128d6d commit 8bd49f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tn-cli/tn-cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def encode_to_bytes(src):
if src == None:
return None
if isinstance(src, str):
return src.encode('utf-8')
return ('"' + src + '"').encode()
return json.dumps(src).encode('utf-8')

# Parse credentials
Expand Down

0 comments on commit 8bd49f7

Please sign in to comment.