Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case when BDUni query returns empty result #107

Merged
merged 2 commits into from
Apr 15, 2024
Merged

Conversation

leavauchier
Copy link
Collaborator

pgsql2shp error output was compared with "bytes" instead of "string" when dealing with it, which led to this error when we tried to generate a shp file with no objects :

b"Initializing... \nERROR: Could not determine table metadata (empty table)\n"
TypeError: 'in <string>' requires string as left operand, not bytes

@leavauchier leavauchier merged commit 96de26f into main Apr 15, 2024
1 check passed
@leavauchier leavauchier deleted the fix-empty-query branch April 15, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants