Skip to content

Commit

Permalink
change if
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed Oct 12, 2024
1 parent dfe56df commit 2641b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qgepqwat2ili/gui/gui_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ def rollback_session(self, emessage):
"Error", "An error occurred: rollback_session activated!", level=Qgis.Warning
)

if not emessage is None:
if emessage is None:
iface.messageBar().pushMessage("Error", "Import was canceled", level=Qgis.Warning)
else:
iface.messageBar().pushMessage(
"Error", f"An error occurred: {emessage}", level=Qgis.Warning
)
iface.messageBar().pushMessage("Error", "Import was canceled", level=Qgis.Warning)
else:
iface.messageBar().pushMessage("Error", "Import was canceled", level=Qgis.Warning)

self.session.close()

Expand Down

0 comments on commit 2641b37

Please sign in to comment.