We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18597b0 commit 6b10e39Copy full SHA for 6b10e39
processinghistory/cmdline/historyview.py
@@ -58,8 +58,11 @@ def mainCmd():
58
if cmdargs.showparents:
59
displayParents(key, procHist)
60
else:
61
- metadict = procHist.metadataByKey[key]
62
- displayDict(metadict, cmdargs)
+ metadict = procHist.metadataByKey.get(key)
+ if metadict is not None:
63
+ displayDict(metadict, cmdargs)
64
+ else:
65
+ print(f'No history metadata for key "{key}"')
66
67
68
def findAncestorKey(procHist, ancestor):
0 commit comments