Skip to content

Commit

Permalink
Properly raise NotImplementedError
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 16, 2017
1 parent 740f58b commit b94612d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/db_manager/db_plugins/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def info(self):
return DatabaseInfo(None)

def connect(self, parent=None):
raise NotImplemented
raise NotImplementedError('Needs to be implemented by subclasses')

def connectToUri(self, uri):
self.db = self.databasesFactory(self, uri)
Expand All @@ -128,7 +128,7 @@ def remove(self):

@classmethod
def addConnection(self, conn_name, uri):
raise NotImplemented
raise NotImplementedError('Needs to be implemented by subclasses')

@classmethod
def icon(self):
Expand Down Expand Up @@ -170,7 +170,7 @@ def databasesFactory(self, connection, uri):

@classmethod
def addConnectionActionSlot(self, item, action, parent):
raise NotImplemented
raise NotImplementedError('Needs to be implemented by subclasses')

def removeActionSlot(self, item, action, parent):
QApplication.restoreOverrideCursor()
Expand Down

0 comments on commit b94612d

Please sign in to comment.