Nov-28-2017, 02:18 PM
Since you have no indentation, it is hard to determine what your code actually looks like. However, the "error" code is pretty explicit. You are trying to write to a file without saying what it is you want to write.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition