Hello, I wanted to ask what is error variable here for?
What does it do and what if I do not enter it?
Hello, I wanted to ask what is error variable here for?
What does it do and what if I do not enter it?
Take a look at the codec docs. https://docs.python.org/3/library/codecs
In Zed’s script, it’s called out as a variable that gets unpacked from the command line so if you don’t include an error type when you run the script, Python will complain.
Why not try it out and see what happens…
Okay, thanks a lot! I will read the documentation now