Skip to content

Commit

Permalink
Undo removal of else
Browse files Browse the repository at this point in the history
  • Loading branch information
dericke committed Jan 25, 2021
1 parent beefb9e commit 8cd0f92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -492,9 +492,10 @@ def _getSqlLayer(self, _filter):
self.avoidSelectById.isChecked(), _filter)
if layer.isValid():
return layer
e = BaseError(self.tr("There was an error creating the SQL layer, please check the logs for further information."))
DlgDbError.showError(e, self)
return None
else:
e = BaseError(self.tr("There was an error creating the SQL layer, please check the logs for further information."))
DlgDbError.showError(e, self)
return None

def loadSqlLayer(self):
with OverrideCursor(Qt.WaitCursor):
Expand Down

0 comments on commit 8cd0f92

Please sign in to comment.