Hi last08, welcome to the forums! Could you please post the entire error message? It shows more valueable information.
I assume as you have not written this script yourself, but found it somewhere online, now you don't want to learn anything about it, but just have somebody repair it for you? Correct me, if I'm wrong.
The way to go about it would be, contact the author. If you are familiar with Github, you can file an issue there, and state the error message.
If you would indeed like to understand the script and repair it yourself, we are ready to help you up to speed. Please do ask questions where you lack understanding.
I assume as you have not written this script yourself, but found it somewhere online, now you don't want to learn anything about it, but just have somebody repair it for you? Correct me, if I'm wrong.
The way to go about it would be, contact the author. If you are familiar with Github, you can file an issue there, and state the error message.
If you would indeed like to understand the script and repair it yourself, we are ready to help you up to speed. Please do ask questions where you lack understanding.