mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-08 13:05:13 +08:00
approve hit msg when python version is unsupported
currently, when the python version used is not supported, it will raise "Python version None is currently not supported."
This commit is contained in:
1 parent
1b4c75608a
commit
caadf3bf4c
1 file changed
+1
-1
+1
-1
@@ -252,7 +252,7 @@ def load_grammar(**kwargs):
|
||||
grammar = PythonGrammar(version_info, bnf_text)
|
||||
return _loaded_grammars.setdefault(path, grammar)
|
||||
except FileNotFoundError:
|
||||
message = "Python version %s is currently not supported." % version
|
||||
message = "Python version %s.%s is currently not supported." % (version_info.major, version_info.minor)
|
||||
raise NotImplementedError(message)
|
||||
else:
|
||||
raise NotImplementedError("No support for language %s." % language)
|
||||
|
||||
Reference in new issue
Block a user