Commit e8140ed
committed
Explicitly check for None
The previous "if not val" also triggers if the parameter is a boolean
that has the value "False" and therefore wrongly excludes those.
Checking for "is None" only triggers if the .get() call fails and
returns its default value (None).1 parent c58fa13 commit e8140ed
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
859 | | - | |
| 859 | + | |
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
| |||
0 commit comments