-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing] fixed check for empty param for strings
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -747,7 +747,7 @@ def __init__(self, name='', description='', default=None, multiline=False, | |
self.evaluateExpressions = parseBool(evaluateExpressions) | ||
|
||
def setValue(self, obj): | ||
if obj is None: | ||
if not bool(obj): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
strk
Contributor
|
||
if not self.optional: | ||
return False | ||
self.value = None | ||
|
@volaya, I think this has affected OGR algs. Try for instance "Convert format". If you don't enter optional parameters, you'll get
None
into the OGR command, making it impossible to run. Could you please confirm and if so, fix it (revert)?