diff --git a/qgepqwat2ili/gui/gui_import.py b/qgepqwat2ili/gui/gui_import.py index 05ff2e56..51662f8a 100644 --- a/qgepqwat2ili/gui/gui_import.py +++ b/qgepqwat2ili/gui/gui_import.py @@ -225,9 +225,11 @@ def rollback_session(self, emessage): ) if not emessage is None: - iface.messageBar().pushMessage("Error", f"An error occurred: {emessage}", level=Qgis.Warning) + iface.messageBar().pushMessage( + "Error", f"An error occurred: {emessage}", level=Qgis.Warning + ) iface.messageBar().pushMessage("Error", "Import was canceled", level=Qgis.Warning) - else: + else: iface.messageBar().pushMessage("Error", "Import was canceled", level=Qgis.Warning) self.session.close()