@SquigY0 That error is part of the code, added by me. You will get that error whenever twitters api is overloaded.
There is nothing wrong with the script, the problem is with twitter, and this has been an issue from the first day of the api.
You can see the recent history of service outages here: http://api-status.com/detail/113966 .
Official status page: https://dev.twitter.com/status
If you would like to suppress this error, you can do so by editing line 62 .