--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/45b3404d-7d3a-4e64-82bc-8cf97ff16959n%40googlegroups.com.
Though being an exception (a subclass of URLError), an HTTPError can also function as a non-exceptional file-like return value (the same thing that urlopen() returns). This is useful when handling exotic HTTP errors, such as requests for authentication.
You have something working, its not worth changing.
rich
Ps. Flask looks pretty cool. Got the stations api running in dev mode in minutes.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/e7473b63-f3ab-4aaa-90c3-f26556b8a2a7n%40googlegroups.com.