skip postgis tests if postgres not running

This commit is contained in:
Dane Springmeyer 2014-09-24 17:43:48 -07:00
parent eb8686388f
commit 5b6ab82f7a

View file

@ -420,8 +420,9 @@ def render(filename,config, width, height, bbox, scale_factor, reporting):
else:
m.zoom_all()
except Exception, e:
if 'Could not create datasource' in str(e):
return m
if 'Could not create datasource' in str(e) \
or 'Bad connection' in str(e):
return m
reporting.other_error(filename, repr(e))
return m