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

PyCSW ConfigParser.get has wrong number of arguments #326

Open
benjwadams opened this issue Feb 27, 2024 · 1 comment
Open

PyCSW ConfigParser.get has wrong number of arguments #326

benjwadams opened this issue Feb 27, 2024 · 1 comment

Comments

@benjwadams
Copy link

In ckan_pycsw.py there is a TypeError raised when various references to table_name = pycsw_config.get("repository", "table", "records") is called, indicating a maximum of 3 arguments, with 4 supplied, e.g.

https://github.com/ckan/ckanext-spatial/blob/master/bin/ckan_pycsw.py#L27

According to https://docs.python.org/3/library/configparser.html#fallback-values there is a keyword-only fallback argument, which looks to be the possible intended behavior here? Should this be

@benjwadams
Copy link
Author

Repeat of #299

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

No branches or pull requests

1 participant