Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[processing] Use silent feedback by default in processing.run
Relying on the iface messagebar feedback as a fallback is not safe for standalone scripts. If callers want to use a message bar feedback they should specify this feedback object specifically when calling processing.run
- Loading branch information
d5573a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the import missing ?
I've got name 'QgsProcessingFeedback' is not defined when my plugin calls r.cost through processing.run.
The error disappears when importing QgsProcessingFeedback.
Here is the full stacktrace
Best regards,
Mathieu