Skip to content

Commit f65c74f

Browse files
committed
No traceback for non-existent items in history
1 parent 3ee1e3a commit f65c74f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Fixed:
4545
Meerwald)
4646
- issue2550994: avoid breakage caused by use of backports of Python 3
4747
configparser module to Python 2. (Joseph Myers)
48+
- Make non-existent items in history not cause a traceback (Ralf
49+
Schlatterbeck)
4850

4951

5052
2018-07-13 1.6.0

roundup/hyperdb.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,13 @@ def history(self, nodeid, enforceperm=True, skipquiet=True):
11011101
if not enforceperm or allow_obsolete:
11021102
journal.append(j)
11031103
continue
1104+
# obsolete linked-to item
1105+
try:
1106+
k = cls.get (linkid, key)
1107+
except IndexError:
1108+
if not enforceperm or allow_obsolete:
1109+
journal.append(j)
1110+
continue
11041111
# is the updated property quiet?
11051112
if skipquiet and cls.properties[key].quiet:
11061113
logger.debug("skipping quiet property: "

0 commit comments

Comments
 (0)