diff --git a/CHANGELOG.md b/CHANGELOG.md
index e458f63..3a73997 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,7 +11,11 @@ For code changes, see [`CHANGELOG_CODE.md`][_-1].
## [Unreleased]
-This section is currently empty.
+### Fixed
+
+* v0.3.0 has a bug causing an internal error
+ if the inspections' levels are set as "Weak warnings".
+ This has been fixed.
## [0.3.0] - 2024-05-13
@@ -43,8 +47,9 @@ For code changes, see [`CHANGELOG_CODE.md`][_-1].
### Changed
-* Default highlight severity levels are now "Error", "Warning" and "Weak warning"
- instead of "Warning", "Weak warning" and "Weak warning".
+* Default highlight severity levels are now
+ "Error", "Warning" and "Weak warning" instead of
+ "Warning", "Weak warning" and "Weak warning".
A future release will allow configuring these levels.
* v0.1.0-mvp.5 has a bug causing the configurations to be always unresetable.
This has been fixed.
diff --git a/CHANGELOG_CODE.md b/CHANGELOG_CODE.md
index 8841ac7..f8415ce 100644
--- a/CHANGELOG_CODE.md
+++ b/CHANGELOG_CODE.md
@@ -12,7 +12,14 @@ For user-facing changes, see [`CHANGELOG.md`][_-1].
## [Unreleased]
-This section is currently empty.
+### Fixed
+
+* `HighlightSeverity` member names contain spaces but not underscores,
+ which causes [`ProblemHighlightType.valueOf()`][31-1] to throw.
+ A workaround is introduced by manually replacing `" "` with `"_"`. (HEAD)
+
+
+ [31-1]: https://github.com/InSyncWithFoo/pyright-for-pycharm/blob/HEAD/src/main/kotlin/com/insyncwithfoo/pyright/PyrightExternalAnnotator.kt
## [0.3.0] - 2024-05-13
diff --git a/src/main/kotlin/com/insyncwithfoo/pyright/PyrightExternalAnnotator.kt b/src/main/kotlin/com/insyncwithfoo/pyright/PyrightExternalAnnotator.kt
index b810564..50549f9 100644
--- a/src/main/kotlin/com/insyncwithfoo/pyright/PyrightExternalAnnotator.kt
+++ b/src/main/kotlin/com/insyncwithfoo/pyright/PyrightExternalAnnotator.kt
@@ -45,7 +45,7 @@ private fun FileDocumentManager.saveAllUnsavedDocumentsAsIs() {
private fun HighlightSeverity.toProblemHighlightType() =
- ProblemHighlightType.valueOf(this.name)
+ ProblemHighlightType.valueOf(this.name.replace(" ", "_"))
private fun InspectionManager.createProblemDescriptor(