mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Fix access to member variable in classmethod
This commit is contained in:
parent
118e303a8d
commit
5bf300d79f
@ -200,9 +200,9 @@ class GPKGDBConnector(DBConnector):
|
||||
raise DbError(e)
|
||||
|
||||
@classmethod
|
||||
def isValidDatabase(self, path):
|
||||
def isValidDatabase(cls, path):
|
||||
if hasattr(gdal, 'OpenEx'):
|
||||
ds = gdal.OpenEx(self.dbname)
|
||||
ds = gdal.OpenEx(path)
|
||||
if ds is None or ds.GetDriver().ShortName != 'GPKG':
|
||||
return False
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user