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

Error when running without markup conversion #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seifertm
Copy link

When running tratihubis without convert_text = true, the following error occurs:

ERROR:tratihubis:translate() got an unexpected keyword argument 'ticketId'
Traceback (most recent call last):
  File "tratihubis/tratihubis.py", line 886, in main
    trac_url=trac_url, convert_text=convert_text, ticketsToRender=ticketsToRender, addComponentLabels=addComponentLabels)
  File "tratihubis/tratihubis.py", line 658, in migrateTickets
    body = translator.translate(body, ticketId=ticketId)
TypeError: translate() got an unexpected keyword argument 'ticketId'

This pull request solves the issue by adding an appropriate named argument with a default value to NullTranslator.

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.

1 participant