Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix access to member variable in classmethod
  • Loading branch information
m-kuhn committed Oct 16, 2017
1 parent 118e303 commit 5bf300d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/db_plugins/gpkg/connector.py
Expand Up @@ -200,9 +200,9 @@ def _commit(self):
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:
Expand Down

0 comments on commit 5bf300d

Please sign in to comment.