X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fcensus-tools.git;a=blobdiff_plain;f=src%2FCensus.py;h=b72da0cbd7133e66f9fb9f5c63b7c641fc58180a;hp=1b203124916535ae424cc35a1a714dea4de34d27;hb=3ab8463a642a3540da604d266d57a6d5af7485cc;hpb=cc8bf3b13b57668f8b83d814b496ceca496ced08 diff --git a/src/Census.py b/src/Census.py index 1b20312..b72da0c 100644 --- a/src/Census.py +++ b/src/Census.py @@ -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):