mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] avoid exception when listing DB schemas
do not fail if cert file cannot be deleted when creating GeoDB object fixes #21099
This commit is contained in:
parent
2c6948382d
commit
1b4a9132c2
@ -222,17 +222,26 @@ class GeoDB(object):
|
||||
sslCertFile = expandedUri.param("sslcert")
|
||||
if sslCertFile:
|
||||
sslCertFile = sslCertFile.replace("'", "")
|
||||
os.remove(sslCertFile)
|
||||
try:
|
||||
os.remove(sslCertFile)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
sslKeyFile = expandedUri.param("sslkey")
|
||||
if sslKeyFile:
|
||||
sslKeyFile = sslKeyFile.replace("'", "")
|
||||
os.remove(sslKeyFile)
|
||||
try:
|
||||
os.remove(sslKeyFile)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
sslCAFile = expandedUri.param("sslrootcert")
|
||||
if sslCAFile:
|
||||
sslCAFile = sslCAFile.replace("'", "")
|
||||
os.remove(sslCAFile)
|
||||
try:
|
||||
os.remove(sslCAFile)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
self.has_postgis = self.check_postgis()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user