Skip to content
Snippets Groups Projects
Commit 9520d165 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix display for trees with no entries

parent 357ee1a2
No related branches found
Tags v0.5.0
No related merge requests found
Pipeline #7658 passed with warnings
......@@ -22,7 +22,7 @@ def print_tree(filename):
for key in f.keys():
try:
print("{:<30} : {:>9} items".format(key.decode(), len(f[key])))
except TypeError:
except (TypeError, KeyError):
print("{}".format(key.decode()))
except NotImplementedError:
print("{} (TStreamerSTL)".format(key.decode()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment