Changeset 104129b in osmose-backend


Ignore:
Timestamp:
Nov 18, 2012 9:26:59 PM (5 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
c97d32a
Parents:
2fbf5f3
Message:

Return an empty list instead of None in get_points(), so that XML generation is not broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/Analyser.py

    r34174d9 r104129b  
    3838    def get_points(self, text): 
    3939        if not text: 
    40             return 
     40            return [] 
    4141        pts = [] 
    4242        for r in self.re_points.findall(text): 
Note: See TracChangeset for help on using the changeset viewer.