Skip to content

fix (XMLFilesReaderManager): processJob casts runnumbers to string before joining

Fixes

2021-11-18 12:00:16 UTC Bookkeeping/BookkeepingManager ERROR: Uncaught exception when serving RPC Function sendXMLBookkeepingReport
Traceback (most recent call last):
  File "/opt/dirac/pro/DIRAC/Core/DISET/RequestHandler.py", line 302, in __RPCCallFunction
    uReturnValue = oMethod(*args)
  File "/opt/dirac/pro/LHCbDIRAC/BookkeepingSystem/Service/BookkeepingManagerHandler.py", line 76, in export_sendXMLBookkeepingReport
    retVal = self.xmlReader.readXMLfromString(xml)
  File "/opt/dirac/pro/LHCbDIRAC/BookkeepingSystem/Service/XMLReader/XMLFilesReaderManager.py", line 91, in readXMLfromString
    result = self.processJob(job)
  File "/opt/dirac/pro/LHCbDIRAC/BookkeepingSystem/Service/XMLReader/XMLFilesReaderManager.py", line 220, in processJob
    self.log.warn("More than 1 run", "[%s]" % ",".join(runnumbers))
TypeError: sequence item 0: expected string, int found

BEGINRELEASENOTES

*Bookkeeping

FIX: cast runnumbers to string in processJob before logging

ENDRELEASENOTES

Merge request reports