Closed bronsonrudner closed 3 years ago
Well, it was not supposed to be None. Anyway, I don't think there is any reasonable interpretation of None at this point. I added default values to arg-parser, probably it would fix your problem. I definitely need to add some tests to avoid thinks like that, Sorry :)
If
polygon_name
isNone
(default) the snippet below does not retrieve the saved data, which is stored as'null'
. I fixed this by adding a linepolygon_name = polygon_name or 'null'
. https://github.com/kunyavskiy/polygon-cli/blob/37e6b9b4a20ce0fa6d6e16bdf784a22d1414598f/polygon_cli/config.py#L72When
polygon_name
isNone
(default) the snippet below breaks. I propose using an fstring rather than addition. https://github.com/kunyavskiy/polygon-cli/blob/37e6b9b4a20ce0fa6d6e16bdf784a22d1414598f/polygon_cli/config.py#L81