Skip to content

Commit

Permalink
Skip S001 caused by bug in code analysis
Browse files Browse the repository at this point in the history
We need to find out where to open an issue about this.
  • Loading branch information
hvelarde committed Jul 20, 2017
1 parent 3b3a838 commit 4dcbf73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sc/social/like/upgrades/v3046/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def reindex_catalog(setup_tool):
for obj in get_valid_objects(results):
catalog.catalog_object(obj, idxs=['object_provides'], update_metadata=False)
n += 1
if n % 1000 == 0 and not test:
# FIXME: S001 bug in code analysis dependency
if n % 1000 == 0 and not test: # noqa: S001
transaction.commit()
logger.info('{0} items processed.'.format(n))

Expand Down

0 comments on commit 4dcbf73

Please sign in to comment.