From 4aa43a773f2ddb2179ae38ec8e3030969d2c41d9 Mon Sep 17 00:00:00 2001 From: Kapiainen Date: Sun, 11 Dec 2016 16:38:17 +0200 Subject: [PATCH] Updated Skyrim plugin Fixed a typo that caused the plugin to crash since there would be an attempt to access a non-existent attribute of an exception. --- README.md | 4 ++++ Source/Modules/Skyrim/Plugin.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dff4da7..53c2244 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,10 @@ Single file build system and a batch build variant. - SKSE mod event names ## **Changelog** +**Version 2.6.6 - 2016/12/11** +- **Skyrim** + - Fixed a typo that caused the plugin to crash under certain circumstances. + **Version 2.6.5 - 2016/12/10:** - **Skyrim** diff --git a/Source/Modules/Skyrim/Plugin.py b/Source/Modules/Skyrim/Plugin.py index 1c207e2..064ceaa 100644 --- a/Source/Modules/Skyrim/Plugin.py +++ b/Source/Modules/Skyrim/Plugin.py @@ -603,9 +603,9 @@ def Completions(self, view, prefix, locations): return completions except Linter.ExpectedKeywordError as f: # Mandatory property flags when initializing a property with a literal - if syn.KW_AUTO in e.keywords: + if syn.KW_AUTO in f.keywords: completions.append(("auto\tkeyword", "Auto",)) - if syn.KW_AUTOREADONLY in e.keywords: + if syn.KW_AUTOREADONLY in f.keywords: completions.append(("autoreadonly\tkeyword", "AutoReadOnly",)) return completions except Linter.ExpectedLiteralError as f: