HBNetwork / python-decouple

Strict separation of config from code.
MIT License
2.83k stars 196 forks source link

decouple doesn't convert value 'None' to bool #120

Closed Quit3Simpl3 closed 3 years ago

Quit3Simpl3 commented 3 years ago

line 50, function decouple._cast_boolean(self, value): maybe add a check to see if the value is the string 'None'? Python converts bool(None) to False, but strtobool('None') raises an exception.

henriquebastos commented 3 years ago

Tks. But I don't see the need for this.