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

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

Open
dclong opened this issue Sep 11, 2017 · 0 comments
Open

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

dclong opened this issue Sep 11, 2017 · 0 comments

Comments

@dclong
Copy link

dclong commented Sep 11, 2017

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

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