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 75d6e0d commit bb03c83Copy full SHA for bb03c83
_validate/createJson.py
@@ -132,10 +132,14 @@ def _createDataclassMatchingJsonSchema(
132
133
# Add optional translated changelog.
134
translatedChangelog = translatedManifest.get("changelog") # type: ignore[reportUnknownMemberType]
135
+ if translatedChangelog == "None":
136
+ # The config default is None
137
+ # which is parsed by configobj as a string not a NoneType
138
+ translatedChangelog = None
139
if translatedChangelog:
140
translations.append(
141
{
- "changelog": cast(str, translatedChangelog),
142
+ "changelog": translatedChangelog,
143
},
144
)
145
0 commit comments