Skip to content

Commit

Permalink
Ensure string
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp1985 committed Aug 1, 2023
1 parent b1faf5e commit 3edbabe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parakeet/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def get_remote_pdb(pdb_id: str) -> tuple:
else:
raise RuntimeError("No PDB or CIF file found")

if not isinstance(filedata, str):
filedata = filedata.decode("ascii")

# Return filedata
return filename, filedata

Expand Down

0 comments on commit 3edbabe

Please sign in to comment.