Skip to content

TypeError: write() argument must be str, not None #7

Description

@dclong

I run the following command

format-sql a_sql_file.sql

but got the following error

Traceback (most recent call last):
  File "/usr/local/bin/format-sql", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/format_sql/main.py", line 83, in main
    _write_back(filename, lines, args.dry_run)
  File "/usr/local/lib/python3.5/dist-packages/format_sql/main.py", line 148, in _write_back
    f.write(lines)
TypeError: write() argument must be str, not None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions