fix issue #940 - KeyError in get_dict_from_list #947
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
example: (annotated output from 'borg diff --info --log-json repo::archive1 archive2')
added directory home/rblenis/tmp/borgtest <-- 'home','rblenis','tmp' added as defaultdict, 'borgtest' added as dict
added 6.93 kB home/rblenis/tmp/borgtest/CircleFit.cpp <-- 'CircleFit.cpp' added as dict
added 1.61 kB home/rblenis/tmp/borgtest/CircleFit.h <-- 'CircleFit.h' added as dict
added directory home/rblenis/tmp/borgtest/folder2 <-- 'folder2' added as dict
added 6.93 kB home/rblenis/tmp/borgtest/folder2/CircleFit.cpp <-- 'CircleFit.cpp' added as dict
added 1.61 kB home/rblenis/tmp/borgtest/folder2/CircleFit.h <-- 'CirclFit.h' added as dict
removed directory home/rblenis/tmp/borgtest/foo/bar1 <-- 'borgtest' is dict, so trying to traverse to non existent foo/bar1 throws KeyError.