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

issue with csv.reader #1

Open
aadm opened this issue Jul 29, 2018 · 1 comment
Open

issue with csv.reader #1

aadm opened this issue Jul 29, 2018 · 1 comment

Comments

@aadm
Copy link

aadm commented Jul 29, 2018

Thanks for the script and the thorough writeup on your blog. I wanted to use it to go back to Keepass after having tried Enpass for a while but it didn't work for me. This was the error:

Traceback (most recent call last):
  File "enpass-to-keepass.py", line 84, in <module>
    main(parser.parse_args())
  File "enpass-to-keepass.py", line 33, in main
    for row in reader:
_csv.Error: line contains NULL byte

I did a little digging on stackexchange and fixed the issue by by replacing this line (#29):

reader = csv.reader(args.input_file)

with this:

reader = csv.reader((line.replace('\0','') for line in args.input_file), delimiter=",")
@jsphpl
Copy link
Owner

jsphpl commented Aug 4, 2018

Interesting, thanks for reporting @aadm! I will update the code as soon as i have time to test it.

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

2 participants