Skip to content

Commit

Permalink
CMSSW repackProcess does not accept unicode strings. Meantime, after …
Browse files Browse the repository at this point in the history
…upgrading sqlalchemy release, all queries return unicode strings.
  • Loading branch information
vytjan committed May 15, 2019
1 parent 84b9336 commit 684299a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/python/T0/WMBS/Oracle/RunConfig/GetStreamDatasetTriggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@ def execute(self, run, stream, conn = None, transaction = False):
resultDict = {}
for result in results:

primds = result[0]
trig = result[1]
if isinstance(result[0], unicode):
primds = (str(result[0]))
else:
primds = result[0]

if isinstance(result[1], unicode):
trig = (str(result[1]))
else:
trig = result[1]

if primds not in resultDict:
resultDict[primds] = []
Expand Down

0 comments on commit 684299a

Please sign in to comment.