Skip to content

Fix set_absinfo to allow setting parameters to zero - #128

Merged
gvalkov merged 1 commit into
gvalkov:masterfrom
odormond:master
Aug 19, 2020
Merged

Fix set_absinfo to allow setting parameters to zero#128
gvalkov merged 1 commit into
gvalkov:masterfrom
odormond:master

Conversation

@odormond

Copy link
Copy Markdown
Contributor

It's impossible to set any of the AbsInfo parameters to 0 as it evaluate to False like None so the code was using the current value instead. The proposed fix simply check explicitly that the value is not None instead of false.

@gvalkov

gvalkov commented Aug 19, 2020

Copy link
Copy Markdown
Owner

Definitely. Thanks for the fix.

@gvalkov
gvalkov merged commit 862c411 into gvalkov:master Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants