Skip to content

Commit

Permalink
Old CMSSW compatibility fix - removing unicode (#4651)
Browse files Browse the repository at this point in the history
  • Loading branch information
emaszs authored Nov 7, 2016
1 parent 8309a13 commit 230385d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/CRABClient/JobType/Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def run(self, filecacheurl = None):
tb.addFiles(userFiles=inputFiles, cfgOutputName=cfgOutputName)
configArguments['adduserfiles'] = [os.path.basename(f) for f in inputFiles]
try:
uploadResult = tb.upload(filecacheurl = filecacheurl)
# convert from unicode to ascii to make it work with CMSSW_5_3_22
uploadResult = tb.upload(filecacheurl = filecacheurl.encode('ascii', 'ignore'))
except HTTPException as hte:
if 'X-Error-Info' in hte.headers:
reason = hte.headers['X-Error-Info']
Expand Down

0 comments on commit 230385d

Please sign in to comment.