From 4dcbf73a3535b64560299bb1aa16ff6d078371ca Mon Sep 17 00:00:00 2001 From: hvelarde Date: Thu, 20 Jul 2017 15:37:34 -0300 Subject: [PATCH] Skip S001 caused by bug in code analysis We need to find out where to open an issue about this. --- sc/social/like/upgrades/v3046/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc/social/like/upgrades/v3046/__init__.py b/sc/social/like/upgrades/v3046/__init__.py index d3b0e1d4..54a4241f 100644 --- a/sc/social/like/upgrades/v3046/__init__.py +++ b/sc/social/like/upgrades/v3046/__init__.py @@ -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))