1 new commit in placeMarkers:
https://bitbucket.org/nvdaaddonteam/placemarkers/commits/6c01f2e59840/
Changeset: 6c01f2e59840
Branch: 8.0-dev
User: norrumar
Date: 2017-05-12 17:21:54+00:00
Summary: Check if a bookmark has been saved before to assign a note body,
to prevent key errors
Affected #: 1 file
diff --git a/addon/globalPlugins/placeMarkers/__init__.py
b/addon/globalPlugins/placeMarkers/__init__.py
index d43c38d..9a3c7e5 100644
--- a/addon/globalPlugins/placeMarkers/__init__.py
+++ b/addon/globalPlugins/placeMarkers/__init__.py
@@ -652,7 +652,11 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
count = len(start.text)
bookmarks = getSavedBookmarks()
noteTitle =
obj.makeTextInfo(textInfos.POSITION_SELECTION).text[:100].encode("mbcs")
- noteBody = bookmarks[count].body
+ positions = bookmarks.keys()
+ if count in positions:
+ noteBody = bookmarks[count].body
+ else:
+ noteBody = ""
bookmarks[count] = Note(noteTitle, noteBody)
fileName = getFileBookmarks()
try:
Repository URL: https://bitbucket.org/nvdaaddonteam/placemarkers/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.