mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -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)
|
||||
except sqlite3.Error:
|
||||
self.cache_connection = False
|
||||
else:
|
||||
self.cache_connection = False
|
||||
|
||||
# Find if there is cache for our connection:
|
||||
if self.cache_connection:
|
||||
|
Loading…
x
Reference in New Issue
Block a user