Commits

Igor Támara committed db6fab0

Avoid raising exception

  • Participants
  • Parent commits f880d32

Comments (0)

Files changed (1)

File parser/osm.py

             for latlon in self.raw.split("\n"):
                 try :
                     lat,lon = latlon.split(",")
-                    float(lat)
-                    float(lon)
+                    float(lat),float(lon) #Make sure we have numbers
                     markers.append("d[%d]={'lat':%s,'lon':%s};" % (i,lat,lon))
-                    
                     i+=1
                 except:
-                    raise
+                    pass 
             self.defaults.update({'listmarkers':"\n".join(markers)})
             self.request.write("""<script
     src="http://static.slec.net/slecstats/js/jquery-latest.min.js"