Skip to content
Snippets Groups Projects
Commit 9ee492c1 authored by Marcin Nowak's avatar Marcin Nowak :radioactive: Committed by Frank Winklmeier
Browse files

Handle RException class leaving the ROOT.Experimental namespace

Handle RException class leaving the ROOT.Experimental namespace
parent 84f6ba30
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,10 @@ def checkNTupleFieldWise(ntuple):
"""Bulk read each top level field cluster by cluster.
"""
from array import array
try:
from ROOT import RException
except ImportError:
from ROOT.Experimental import RException
try:
reader=RNTupleReader.Open(ntuple)
......@@ -131,7 +135,7 @@ def checkNTupleFieldWise(ntuple):
values = bulk.ReadBulk(clusterIndex, maskReq, size)
msg.debug(f" values array at {values}")
except ROOT.Experimental.RException as err:
except RException as err:
from traceback import format_exception
msg.error("Exception reading ntuple %r\n%s", ntuple, "".join(format_exception(err)))
return 1
......
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