Skip to content

Commit adfaf76

Browse files
committed
Another Travis fix
1 parent 0c79d08 commit adfaf76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/plugins/processing/gui/BatchPanel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ def setCellWrapper(self, row, column, wrapper, context):
256256
is_cpp_wrapper = not issubclass(wrapper.__class__, WidgetWrapper)
257257
if is_cpp_wrapper:
258258
widget_context = QgsProcessingParameterWidgetContext()
259-
widget_context.setMapCanvas(iface.mapCanvas())
259+
if iface is not None:
260+
widget_context.setMapCanvas(iface.mapCanvas())
260261
wrapper.setWidgetContext(widget_context)
261262
widget = wrapper.createWrappedWidget(context)
262263
else:

0 commit comments

Comments
 (0)