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

Rectify parameter count for translate() function #80

Open
docktermj opened this issue Oct 7, 2024 · 0 comments
Open

Rectify parameter count for translate() function #80

docktermj opened this issue Oct 7, 2024 · 0 comments
Assignees

Comments

@docktermj
Copy link
Contributor

In Pull Request #79

In init-postgresql.py there is a change to the translate() function from old line 648 to new line 712 that reduces the parameters from 2 parameters to 1 parameter.

However, on new lines 785 - 797 the code still has the call to translate() using 2 parameters.

This produces the following error:

Traceback (most recent call last):
  File "/app/init-postgresql.py", line 1210, in <module>
    globals()[SUBCOMMAND_FUNCTION_NAME](SUBCOMMAND, ARGS)
  File "/app/init-postgresql.py", line 1097, in do_mandatory
    task_process_sql_file(config)
  File "/app/init-postgresql.py", line 1039, in task_process_sql_file
    process_sql_file(input_url, get_db_parameters(db_parameters))
  File "/app/init-postgresql.py", line 839, in get_db_parameters
    parsed_database_url = parse_database_url(database_url)
  File "/app/init-postgresql.py", line 785, in parse_database_url
    "scheme": translate(translation_map, parsed.scheme),
TypeError: translate() takes 1 positional argument but 2 were given
@github-actions github-actions bot added the triage Need to triage label Oct 7, 2024
@jamietypovsky jamietypovsky removed the triage Need to triage label Nov 21, 2024
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

3 participants