[Dive4elements-commits] [PATCH 3 of 4] Fix syntax error when river id is not found (pylint could have told me this)

Wald Commits scm-commit at wald.intevation.org
Mon Mar 11 16:52:38 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1363016825 -3600
# Node ID aa043641d9c8614e9d119a35da39a2c0bda4ef60
# Parent  613d2f494728e5557e88af38863b01af32d3ec47
Fix syntax error when river id is not found (pylint could have told me this)

diff -r 613d2f494728 -r aa043641d9c8 flys-backend/contrib/shpimporter/shpimporter.py
--- a/flys-backend/contrib/shpimporter/shpimporter.py	Mon Mar 11 15:55:11 2013 +0100
+++ b/flys-backend/contrib/shpimporter/shpimporter.py	Mon Mar 11 16:47:05 2013 +0100
@@ -198,8 +198,8 @@
         river_id = utils.getRiverId(dbconn_raw, river_name, oracle)
 
         if not river_id:
-            logger.info("Could not find river in database. Skipping: %s"
-                  % unicode(utils.getUTF8(river_name)), "UTF-8")
+            logger.info(u"Could not find river in database. Skipping: %s"
+                  % unicode(utils.getUTF8(river_name), "UTF-8"))
             continue
         else:
             logger.info(u"Importing River: %s" % unicode(


More information about the Dive4elements-commits mailing list