~facundo/ubuntu-rest-scopes/7digital-forbidden-countries-8

« back to all changes in this revision

Viewing changes to src/scopes/weatherchannel.py

  • Committer: Tarmac
  • Author(s): Facundo Batista
  • Date: 2016-05-27 12:36:21 UTC
  • mfrom: (520.1.1 twc-support-not-dates)
  • Revision ID: tarmac-20160527123621-sowfy4if31s665lp
[r=ralsina] Support null values in sun rise & set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
                set_raw = item['sunset']
337
337
            except KeyError:
338
338
                continue
 
339
            if rise_raw is None or set_raw is None:
 
340
                continue
339
341
 
340
342
            dt_rise = parse_date(rise_raw)
341
343
            dt_set = parse_date(set_raw)