- all the logs done on Exception are now errors (with the exception of few places where the Exception is expected)
This commit is contained in:
@@ -521,7 +521,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
self.app.myKeywords.append(new_name)
|
||||
self.app.shell._edit.set_model_data(self.app.myKeywords)
|
||||
except Exception as e:
|
||||
self.app.log.debug(
|
||||
self.app.log.error(
|
||||
"setData() --> Could not remove the old object name from auto-completer model list. %s" %
|
||||
str(e))
|
||||
# obj.build_ui()
|
||||
@@ -657,7 +657,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
xmax = max([xmax, gxmax])
|
||||
ymax = max([ymax, gymax])
|
||||
except Exception as e:
|
||||
self.app.log.warning("DEV WARNING: Tried to get bounds of empty geometry. %s" % str(e))
|
||||
self.app.log.error("Tried to get bounds of empty geometry. %s" % str(e))
|
||||
|
||||
return [xmin, ymin, xmax, ymax]
|
||||
|
||||
@@ -708,7 +708,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
# this is not needed any more because now the code editor is created on demand
|
||||
# self.app.ui.code_editor.set_model_data(self.app.myKeywords)
|
||||
except Exception as e:
|
||||
self.app.log.debug(
|
||||
self.app.log.error(
|
||||
"delete_active() --> Could not remove the old object name from auto-completer model list. %s" % str(e))
|
||||
|
||||
self.app.object_status_changed.emit(active.obj, 'delete', name)
|
||||
@@ -761,7 +761,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
# this is not needed any more because now the code editor is created on demand
|
||||
# self.app.ui.code_editor.set_model_data(self.app.myKeywords)
|
||||
except Exception as e:
|
||||
self.app.log.debug(
|
||||
self.app.log.error(
|
||||
"delete_by_name() --> Could not remove the old object name from auto-completer model list. %s" % str(e))
|
||||
|
||||
self.app.object_status_changed.emit(deleted.obj, 'delete', name)
|
||||
@@ -823,7 +823,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
|
||||
self.app.plotcanvas.redraw()
|
||||
except Exception as e:
|
||||
self.app.log.debug("ObjectCollection.delete_all() --> %s" % str(e))
|
||||
self.app.log.error("ObjectCollection.delete_all() --> %s" % str(e))
|
||||
|
||||
def get_active(self):
|
||||
"""
|
||||
@@ -987,7 +987,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
try:
|
||||
self.app.ui.properties_scroll_area.takeWidget()
|
||||
except Exception as e:
|
||||
self.app.log.debug("ObjectCollection.on_list_selection_changed() -> Nothing to remove. %s" % str(e))
|
||||
self.app.log.error("ObjectCollection.on_list_selection_changed() -> Nothing to remove. %s" % str(e))
|
||||
|
||||
self.app.setup_default_properties_tab()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user