gescheit/scripts — pull request #16 by fossilet (2013-03-27 11:28:25+00:00)
Title: Raise exception on API request error

Hi I here show the rationale of my commit.

I use a wrapper to catch any uncaught exception in my Python cron jobs. I find one of them were not running correctly in the last day. When I run it manually it, I find the following error message:

```
40: Site needs HTTP authentication. Error: HTTP Error 412: Precondition Failed
```

I recalled the URL of our Zabbix server had changed, but I have not changed my code. The Zabbix API caught the exception, so the script failed to catch it.

If the Zabbix API can raise some exception, the caller can choose what to do with the exception.