mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
prevent AttributeError
If os.path.isfile(sqlite_cache_file) is False, the Attribute cache_connection was not assigned and so an Attribute Error occured in the following lines.
This commit is contained in:
parent
a7c766e41e
commit
1a45936595
@ -108,6 +108,8 @@ class OracleDBConnector(DBConnector):
|
|||||||
self.cache_connection = sqlite3.connect(sqlite_cache_file)
|
self.cache_connection = sqlite3.connect(sqlite_cache_file)
|
||||||
except sqlite3.Error:
|
except sqlite3.Error:
|
||||||
self.cache_connection = False
|
self.cache_connection = False
|
||||||
|
else:
|
||||||
|
self.cache_connection = False
|
||||||
|
|
||||||
# Find if there is cache for our connection:
|
# Find if there is cache for our connection:
|
||||||
if self.cache_connection:
|
if self.cache_connection:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user