Skip to content

Commit 5bf300d

Browse files
committedOct 16, 2017
Fix access to member variable in classmethod
1 parent 118e303 commit 5bf300d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/db_manager/db_plugins/gpkg/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ def _commit(self):
200200
raise DbError(e)
201201

202202
@classmethod
203-
def isValidDatabase(self, path):
203+
def isValidDatabase(cls, path):
204204
if hasattr(gdal, 'OpenEx'):
205-
ds = gdal.OpenEx(self.dbname)
205+
ds = gdal.OpenEx(path)
206206
if ds is None or ds.GetDriver().ShortName != 'GPKG':
207207
return False
208208
else:

0 commit comments

Comments
 (0)
Please sign in to comment.