Skip to content

Mac OS 10.6.8 reports CLI error #7

Description

@taskboy3000

twee > outfile.html generates this stack trace:

Traceback (most recent call last):
File "/Users/jjohnston/src/twee/twee", line 104, in
main(sys.argv[1:])
File "/Users/jjohnston/src/twee/twee", line 88, in main
print tw.toHtml()
TypeError: toHtml() takes at least 2 arguments (1 given)

I resolved this by changing line 87 to
print tw.toHtml(None, None)

It seems that even though the method toHtml() sets defaults for its arguments, python would see like to see two parameters passed in. Go figure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions