Navigation Menu

Skip to content

Commit

Permalink
Throw QgsProcessingException when a python exception occurs while run…
Browse files Browse the repository at this point in the history
…ning an alg
  • Loading branch information
nyalldawson committed Jun 23, 2017
1 parent 958ca10 commit a4f23fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/processing/qgsprocessingalgorithm.sip
Expand Up @@ -292,7 +292,7 @@ class QgsProcessingAlgorithm
%End

virtual QVariantMap processAlgorithm( const QVariantMap &parameters,
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0;
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0 /VirtualErrorHandler=processing_exception_handler/;
%Docstring
Runs the algorithm using the specified ``parameters``. Algorithms should implement
their custom processing logic here.
Expand Down
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingalgorithm.h
Expand Up @@ -300,7 +300,7 @@ class CORE_EXPORT QgsProcessingAlgorithm
* values such as statistical calculations.
*/
virtual QVariantMap processAlgorithm( const QVariantMap &parameters,
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0;
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0 SIP_VIRTUALERRORHANDLER( processing_exception_handler );

/**
* Evaluates the parameter with matching \a name to a static string value.
Expand Down

0 comments on commit a4f23fd

Please sign in to comment.