Skip to content

Commit

Permalink
Silence when SIO is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 31, 2023
1 parent 2bf7c49 commit cbe2da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/podio/sio_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"""Python module for reading sio files containing podio Frames"""

from ROOT import gSystem
ret = gSystem.Load('libpodioSioIO') # noqa: 402
# Return values: -1 when it doesn't exist and -2 when there is a version mismatch
if ret < 0:
if gSystem.DynamicPathName("libpodioSioIO.so", True):
gSystem.Load('libpodioSioIO') # noqa: 402
else:
raise ImportError('Error when importing libpodioSioIO')
from ROOT import podio # noqa: 402 # pylint: disable=wrong-import-position

Expand Down

0 comments on commit cbe2da4

Please sign in to comment.