nens / threedi-schematisation-editor

QGIS tool for editing schematisations
0 stars 0 forks source link

Python error when digitizing a Culvert #236

Closed leendertvanwolfswinkel closed 1 week ago

leendertvanwolfswinkel commented 1 month ago

How to reproduce:

Error:

AttributeError: 'NoneType' object has no attribute 'setDisabled' 
Traceback (most recent call last):
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\default/python/plugins\threedi_schematisation_editor\utils.py", line 972, in setup_friction_and_vegetation_widgets
    related_widget.setDisabled(True)
AttributeError: 'NoneType' object has no attribute 'setDisabled'
ldebek commented 1 month ago

@leendertvanwolfswinkel Is the model in the schema version >= 219?

ldebek commented 1 month ago

@leendertvanwolfswinkel Regarding schema version, there was indeed a bug in a tool. PR with fix connected to the issue.