@@ -120,8 +120,6 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
120
120
feedback = QgsProcessingFeedback ()
121
121
122
122
if alg is None :
123
- # fix_print_with_import
124
- print ('Error: Algorithm not found\n ' )
125
123
msg = Processing .tr ('Error: Algorithm {0} not found\n ' ).format (algOrName )
126
124
feedback .reportError (msg )
127
125
raise QgsProcessingException (msg )
@@ -130,9 +128,7 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
130
128
for param in alg .parameterDefinitions ():
131
129
if param .name () not in parameters :
132
130
if not param .flags () & QgsProcessingParameterDefinition .FlagOptional :
133
- # fix_print_with_import
134
131
msg = Processing .tr ('Error: Missing parameter value for parameter {0}.' ).format (param .name ())
135
- print ('Error: Missing parameter value for parameter %s.' % param .name ())
136
132
feedback .reportError (msg )
137
133
raise QgsProcessingException (msg )
138
134
@@ -141,15 +137,11 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
141
137
142
138
ok , msg = alg .checkParameterValues (parameters , context )
143
139
if not ok :
144
- # fix_print_with_import
145
- print ('Unable to execute algorithm\n ' + str (msg ))
146
140
msg = Processing .tr ('Unable to execute algorithm\n {0}' ).format (msg )
147
141
feedback .reportError (msg )
148
142
raise QgsProcessingException (msg )
149
143
150
144
if not alg .validateInputCrs (parameters , context ):
151
- print ('Warning: Not all input layers use the same CRS.\n ' +
152
- 'This can cause unexpected results.' )
153
145
feedback .pushInfo (
154
146
Processing .tr ('Warning: Not all input layers use the same CRS.\n This can cause unexpected results.' ))
155
147
0 commit comments