]> gitweb.michael.orlitzky.com - dead/census-tools.git/blobdiff - src/Census.py
Added the linear program solving the midatlantic region.
[dead/census-tools.git] / src / Census.py
index 761b380ba15f70c22ff75baf202cda86e8b501b8..b72da0cbd7133e66f9fb9f5c63b7c641fc58180a 100644 (file)
@@ -25,7 +25,10 @@ class Database:
 
 
     def __del__(self):
-        self.connection.close()
+        try:
+            self.connection.close()
+        except:
+            pass
 
 
     def find_average_population_density(self, coords):
@@ -60,7 +63,7 @@ class Database:
         """
         cursor = self.connection.cursor()
 
-        # We're ready to build our query, one step at a time. Firsy, we store
+        # We're ready to build our query, one step at a time. First, we store
         # the Text->Geom conversion in a variable; this just makes the query a
         # little easier to read.
         geometric_object = "ST_GeomFromText(%s, %d)"