We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a992a9 commit f065bf4Copy full SHA for f065bf4
src/undate/undate.py
@@ -258,7 +258,7 @@ def format(self, format) -> str:
258
"""format this undate as a string using the specified format;
259
for now, only supports named converters"""
260
converter_cls = BaseDateConverter.available_converters().get(format, None)
261
- if converter_cls:
+ if converter_cls is not None:
262
# NOTE: some parsers may return intervals; is that ok here?
263
return converter_cls().to_string(self)
264
0 commit comments