Skip to content

Commit ae0e9c8

Browse files
committed
[processing]minor code cleaning
Conflicts: python/plugins/processing/core/parameters.py
1 parent e6f9499 commit ae0e9c8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

python/plugins/processing/gui/ParametersPanel.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
from qgis.PyQt import uic
3939
from qgis.PyQt.QtCore import QCoreApplication, QVariant
40-
from qgis.PyQt.QtWidgets import (QWidget, QLayout, QVBoxLayout, QHBoxLayout, QToolButton,
40+
from qgis.PyQt.QtWidgets import (QWidget, QLayout, QVBoxLayout, QHBoxLayout, QToolButton,
4141
QLabel, QCheckBox, QComboBox, QLineEdit, QPlainTextEdit)
4242
from qgis.PyQt.QtGui import QIcon
4343

@@ -97,11 +97,8 @@ def initWidgets(self):
9797
desc += self.tr(' (xmin, xmax, ymin, ymax)')
9898
if isinstance(param, ParameterPoint):
9999
desc += self.tr(' (x, y)')
100-
try:
101-
if param.optional:
102-
desc += self.tr(' [optional]')
103-
except:
104-
pass
100+
if param.optional:
101+
desc += self.tr(' [optional]')
105102

106103
wrapper = self.getWidgetWrapperFromParameter(param)
107104
self.wrappers[param.name] = wrapper

0 commit comments

Comments
 (0)