Skip to content

Commit

Permalink
Merge pull request cms-sw#36 from TaiSakuma/76X-fix-cmsIO-import-error
Browse files Browse the repository at this point in the history
catch the ImportError of cmsIO for 76X
  • Loading branch information
gpetruc committed May 17, 2016
2 parents 0fb2083 + 47375a8 commit 7426d84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Production/python/eostools.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ def setCAFPath():
if caf not in sys.path:
sys.path.append(caf)
setCAFPath()
import cmsIO
try:
import cmsIO
except ImportError as e:
import logging
logger = logging.getLogger(__name__)
logger.warning(str(e))
logger.warning("wasn't able to import cmsIO, which this job might not need unless it uses EOS.")

def runXRDCommand(path, cmd, *args):
"""Run an xrd command.
Expand Down

0 comments on commit 7426d84

Please sign in to comment.