Permalink
Browse files

always print

  • Loading branch information...
1 parent 822afa2 commit 2bea1c890f364ebd1bfacc8f7b14cd3f19e61541 jordan committed May 14, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 management/commands/geonames_import.py
@@ -236,6 +236,7 @@ def import_first_level_adm(self):
except Exception, inst:
raise Exception("Encountered an error trying to encode the value for this line:\n%s\n\nThe error was: %s" (line, inst))
try:
+ print(u'INSERT INTO admin1_code (country_id, geoname_id, code, name, ascii_name) VALUES (%s, %s, %s, %s, %s)' % (country_id, geoname_id, code, name, ascii_name))
self.cursor.execute(u'INSERT INTO admin1_code (country_id, geoname_id, code, name, ascii_name) VALUES (%s, %s, %s, %s, %s)', (country_id, geoname_id, code, name, ascii_name))
except Exception, e:
print(u'INSERT INTO admin1_code (country_id, geoname_id, code, name, ascii_name) VALUES (%s, %s, %s, %s, %s)' % (country_id, geoname_id, code, name, ascii_name))

0 comments on commit 2bea1c8

Please sign in to comment.