Changeset d648cce in osmose-backend


Ignore:
Timestamp:
Jan 6, 2013 5:49:18 PM (7 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
147c227
Parents:
0b7ddd0
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (05/01/2013 21:04:52)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (06/01/2013 17:49:18)
Message:

Don't add 'text' to error if none available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/OsmoseErrorFile.py

    r2080315 rd648cce  
    7575            for g in geom[type]: 
    7676                self.geom_type_renderer[type](g) 
    77         for lang in text: 
    78             self.outxml.Element("text", {"lang":lang, "value":text[lang]}) 
     77        if text: 
     78            for lang in text: 
     79                self.outxml.Element("text", {"lang":lang, "value":text[lang]}) 
    7980        if fix: 
    8081            self.dumpxmlfix(res, fixType, fix) 
Note: See TracChangeset for help on using the changeset viewer.