pgstac icon indicating copy to clipboard operation
pgstac copied to clipboard

Allow for byte returns from pg version call

Open lossyrob opened this issue 2 years ago • 0 comments

I ran into a case where the check on this line: https://github.com/stac-utils/pgstac/blob/main/pypgstac/pypgstac/db.py#L234 failed due to the row value being bytes, not str. Forcing a .decode() on the value if it's type(bytes) fixed the issue. Not sure why this would return str some of the time and bytes others, or if this also could be a problem for the version method on the same class.

lossyrob avatar Apr 25 '22 15:04 lossyrob