skip postgis tests if postgres not running
This commit is contained in:
parent
eb8686388f
commit
5b6ab82f7a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue