Skip to content

Commit

Permalink
skip parent file names illegal for DBS. Fix dmwm#6771
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte committed Sep 16, 2021
1 parent c9c9779 commit 606391a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/Publisher/TaskPublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,12 @@ def saveSummaryJson(logdir, summary):
parentFiles.add(parentFile)
# Is this parent file already in the destination DBS instance?
# (If yes, then we don't have to migrate this block.)
blocksDict = destReadApi.listBlocks(logical_file_name=parentFile)
# some parent files are illegal DBS names (GH issue #6771), skip them
try:
blocksDict = destReadApi.listBlocks(logical_file_name=parentFile)
except:
parentsToSkip.add(parentFile)
continue
if not blocksDict:
# No, this parent file is not in the destination DBS instance.
# Maybe it is in the same DBS instance as the input dataset?
Expand Down

0 comments on commit 606391a

Please sign in to comment.