Skip to content

Commit 4aae7d1

Browse files
committed
Fix raising wrong exception
1 parent c556df5 commit 4aae7d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readthedocs/config/config.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,8 @@ def get_configuration_class(version):
967967
version = int(version)
968968
return configurations_class[version]
969969
except (KeyError, ValueError):
970-
raise ConfigError(
971-
'Invalid version of the configuration file',
970+
raise InvalidConfig(
971+
'version',
972972
code=VERSION_INVALID,
973+
error_message='Invalid version of the configuration file',
973974
)

0 commit comments

Comments
 (0)