On Tue 25 Jun Rick M0LEP wrote:
> Thanks. Fix made. This time the exception was co-incident with a brief 
> break in broadband connection.

Another day, another break in Net connectivity, another exception:

Jun 28 05:58:42 duma weewx[27097]:
bloomsky: bloomsky-client:    **** <urlopen error [Errno -3] Temporary 
failure in name resolution>
bloomsky: bloomsky-client: Exception:
 Traceback (most recent call last):
   File "/usr/share/weewx/user/bloomsky.py", line 684, in run
     self.client.collect_data()
   File "/usr/share/weewx/user/bloomsky.py", line 485, in collect_data
     raw_data = self.sd.get_data()
   File "/usr/share/weewx/user/bloomsky.py", line 708, in get_data
     params, headers)
   File "/usr/share/weewx/user/bloomsky.py", line 753, in get_request
     resp_json = json.loads(resp)
 UnboundLocalError: local variable 'resp' referenced before assignment

Not yet encountered a repeat of the issue that started this thread, but 
I'm keeping a watch for it and I'll report what the new code does when 
it happens...

-- 
73, Rick, M0LEP

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/20cf.5d15cc88.88440.m0lep%40hewett.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to