)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"a3b46a74eabbf21bc6c964a10260baefd0a76314","unresolved":true,"context_lines":[{"line_number":13,"context_line":"- six.PY3"},{"line_number":14,"context_line":"- six.text_type"},{"line_number":15,"context_line":"- six.string_type"},{"line_number":16,"context_line":"- ix.string_types"},{"line_number":17,"context_line":"- six.iteritems"},{"line_number":18,"context_line":"- six.integer_types"},{"line_number":19,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"081ea05d_cb446100","line":16,"range":{"start_line":16,"start_character":2,"end_line":16,"end_character":4},"updated":"2020-12-14 14:12:14.000000000","message":"s/ix/six/","commit_id":"7a9e294b1a052f66f2ea87217d32d36a8199789c"}],"HACKING.rst":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"ba3cdcaf2f8f1b02cb35a87755f0209b1329d3fe","unresolved":false,"context_lines":[{"line_number":14,"context_line":"- [C312] Use assertTrue(...) rather than assertEqual(True, ...)."},{"line_number":15,"context_line":"- [C313] Validate that logs are not translated."},{"line_number":16,"context_line":"- [C314] str() and unicode() cannot be used on an exception."},{"line_number":17,"context_line":"  Remove or use str()."},{"line_number":18,"context_line":"- [C315] Translated messages cannot be concatenated.  String should be"},{"line_number":19,"context_line":"  included in translated message."},{"line_number":20,"context_line":"- [C317] `oslo_` should be used instead of `oslo.`"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f560f44_df74333a","line":17,"range":{"start_line":17,"start_character":0,"end_line":17,"end_character":22},"updated":"2020-10-01 20:02:48.000000000","message":"This doesn\u0027t make sense with the previous line.","commit_id":"199a203385dea6ff63df5ab55b0aee4479deb1fb"}],"cloudkitty/api/v1/controllers/collector.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            return collector_models.ServiceToCollectorMapping("},{"line_number":47,"context_line":"                **mapping.as_dict())"},{"line_number":48,"context_line":"        except db_api.NoSuchMapping as e:"},{"line_number":49,"context_line":"            pecan.abort(404, str(e))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    @wsme_pecan.wsexpose(collector_models.ServiceToCollectorMappingCollection,"},{"line_number":52,"context_line":"                         wtypes.text)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_75574d5b","line":49,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        try:"},{"line_number":94,"context_line":"            self._db.delete_mapping(service)"},{"line_number":95,"context_line":"        except db_api.NoSuchMapping as e:"},{"line_number":96,"context_line":"            pecan.abort(404, str(e))"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"class CollectorStateController(rest.RestController):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_555a0981","line":96,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/collector/gnocchi.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":319,"context_line":"            # FIXME(peschk_l): gnocchiclient seems to be raising a BadRequest"},{"line_number":320,"context_line":"            # when it should be raising MetricNotFound"},{"line_number":321,"context_line":"            if isinstance(e, gexceptions.BadRequest):"},{"line_number":322,"context_line":"                if \u0027Metrics not found\u0027 not in str(e):"},{"line_number":323,"context_line":"                    raise"},{"line_number":324,"context_line":"            LOG.warning(\u0027[{scope}] Skipping this metric for the \u0027"},{"line_number":325,"context_line":"                        \u0027current cycle.\u0027.format(scope\u003dproject_id, err\u003de))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_1565311d","line":322,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/hacking/checks.py":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"0c49824a417af1e65f299446c440ae98dd7f4f02","unresolved":false,"context_lines":[{"line_number":219,"context_line":"    name \u003d \"check_for_str_unicode_exc\""},{"line_number":220,"context_line":"    version \u003d \"1.0\""},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"    CHECK_DESC \u003d (\u0027C314 str() and unicode() cannot be used on an \u0027"},{"line_number":223,"context_line":"                  \u0027exception.  Remove or use str()\u0027)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def __init__(self, tree, filename):"},{"line_number":226,"context_line":"        super(CheckForStrUnicodeExc, self).__init__(tree, filename)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f560f44_5ef005fe","line":223,"range":{"start_line":222,"start_character":0,"end_line":223,"end_character":52},"updated":"2020-10-05 13:31:42.000000000","message":"This still doesn\u0027t make sense. Either str() can be used or it cannot.","commit_id":"89571164d6b49188debb70f3e89e75d3c85e6b85"},{"author":{"_account_id":28356,"name":"Rafael Weingartner","email":"rafael@apache.org","username":"rafaelweingartner"},"change_message_id":"52f3f388e3a23a95cc00fe6832c2ee5d0db91ad1","unresolved":true,"context_lines":[{"line_number":219,"context_line":"    name \u003d \"check_for_str_unicode_exc\""},{"line_number":220,"context_line":"    version \u003d \"1.0\""},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"    CHECK_DESC \u003d (\u0027C314 str() and unicode() cannot be used on an \u0027"},{"line_number":223,"context_line":"                  \u0027exception.  Remove or use str()\u0027)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def __init__(self, tree, filename):"},{"line_number":226,"context_line":"        super(CheckForStrUnicodeExc, self).__init__(tree, filename)"}],"source_content_type":"text/x-python","patch_set":7,"id":"38f3e78b_ca3070c0","line":223,"range":{"start_line":222,"start_character":19,"end_line":223,"end_character":50},"updated":"2020-11-26 12:37:53.000000000","message":"This one is a bit confusing to me. `str()` cannot be used.. then you say that one should use it. Is there something wrong with this sentence?","commit_id":"3e136ad6430e784bbcb7f3be1c701189af8cb66d"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"a3b46a74eabbf21bc6c964a10260baefd0a76314","unresolved":true,"context_lines":[{"line_number":206,"context_line":"        yield(0, \"C321: Found use of _() without explicit import of _ !\")"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"class CheckForStrUnicodeExc(BaseASTChecker):"},{"line_number":210,"context_line":"    \"\"\"Checks for the use of str() or unicode() on an exception."},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    This currently only handles the case where str() or unicode()"},{"line_number":213,"context_line":"    is used in the scope of an exception handler.  If the exception"},{"line_number":214,"context_line":"    is passed into a function, returned from an assertRaises, or"},{"line_number":215,"context_line":"    used on an exception created in the same scope, this does not"},{"line_number":216,"context_line":"    catch it."},{"line_number":217,"context_line":"    \"\"\""},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    name \u003d \"check_for_str_unicode_exc\""},{"line_number":220,"context_line":"    version \u003d \"1.0\""},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"    CHECK_DESC \u003d (\u0027C314 str() and unicode() cannot be used on an \u0027"},{"line_number":223,"context_line":"                  \u0027exception.  Remove it.\u0027)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def __init__(self, tree, filename):"},{"line_number":226,"context_line":"        super(CheckForStrUnicodeExc, self).__init__(tree, filename)"},{"line_number":227,"context_line":"        self.name \u003d []"},{"line_number":228,"context_line":"        self.already_checked \u003d []"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"    # Python 2"},{"line_number":231,"context_line":"    def visit_TryExcept(self, node):"},{"line_number":232,"context_line":"        for handler in node.handlers:"},{"line_number":233,"context_line":"            if handler.name:"},{"line_number":234,"context_line":"                self.name.append(handler.name.id)"},{"line_number":235,"context_line":"                super(CheckForStrUnicodeExc, self).generic_visit(node)"},{"line_number":236,"context_line":"                self.name \u003d self.name[:-1]"},{"line_number":237,"context_line":"            else:"},{"line_number":238,"context_line":"                super(CheckForStrUnicodeExc, self).generic_visit(node)"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"    # Python 3"},{"line_number":241,"context_line":"    def visit_ExceptHandler(self, node):"},{"line_number":242,"context_line":"        if node.name:"},{"line_number":243,"context_line":"            self.name.append(node.name)"},{"line_number":244,"context_line":"            super(CheckForStrUnicodeExc, self).generic_visit(node)"},{"line_number":245,"context_line":"            self.name \u003d self.name[:-1]"},{"line_number":246,"context_line":"        else:"},{"line_number":247,"context_line":"            super(CheckForStrUnicodeExc, self).generic_visit(node)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def visit_Call(self, node):"},{"line_number":250,"context_line":"        if self._check_call_names(node, [\u0027str\u0027, \u0027unicode\u0027]):"},{"line_number":251,"context_line":"            if node not in self.already_checked:"},{"line_number":252,"context_line":"                self.already_checked.append(node)"},{"line_number":253,"context_line":"                if isinstance(node.args[0], ast.Name):"},{"line_number":254,"context_line":"                    if node.args[0].id in self.name:"},{"line_number":255,"context_line":"                        self.add_error(node.args[0])"},{"line_number":256,"context_line":"        super(CheckForStrUnicodeExc, self).generic_visit(node)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"class CheckForTransAdd(BaseASTChecker):"}],"source_content_type":"text/x-python","patch_set":8,"id":"052aff79_150edc6e","line":256,"range":{"start_line":209,"start_character":0,"end_line":256,"end_character":62},"updated":"2020-12-14 14:12:14.000000000","message":"I would remove this check altogether. This is what has been done in other repositories. See for example:\n\n* https://review.opendev.org/c/openstack/barbican/+/716730\n* https://review.opendev.org/c/openstack/manila/+/756993","commit_id":"7a9e294b1a052f66f2ea87217d32d36a8199789c"}],"cloudkitty/rating/__init__.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        try:"},{"line_number":141,"context_line":"            policy.authorize(request.context, \u0027rating:module_config\u0027, {})"},{"line_number":142,"context_line":"        except policy.PolicyNotAuthorized as e:"},{"line_number":143,"context_line":"            pecan.abort(403, str(e))"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        return super(RatingRestControllerBase, self)._route(args, request)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_954f81bc","line":143,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/rating/hash/controllers/field.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            field_db \u003d hashmap.get_field(uuid\u003dfield_id)"},{"line_number":60,"context_line":"            return field_models.Field(**field_db.export_model())"},{"line_number":61,"context_line":"        except db_api.NoSuchField as e:"},{"line_number":62,"context_line":"            pecan.abort(404, str(e))"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    @wsme_pecan.wsexpose(field_models.Field,"},{"line_number":65,"context_line":"                         body\u003dfield_models.Field,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_f5dfddd3","line":62,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            return field_models.Field("},{"line_number":82,"context_line":"                **field_db.export_model())"},{"line_number":83,"context_line":"        except db_api.FieldAlreadyExists as e:"},{"line_number":84,"context_line":"            pecan.abort(409, str(e))"},{"line_number":85,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":86,"context_line":"            pecan.abort(400, str(e))"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_d5da99e3","line":84,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        except db_api.FieldAlreadyExists as e:"},{"line_number":84,"context_line":"            pecan.abort(409, str(e))"},{"line_number":85,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":86,"context_line":"            pecan.abort(400, str(e))"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @wsme_pecan.wsexpose(None,"},{"line_number":89,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_35ef9587","line":86,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        try:"},{"line_number":98,"context_line":"            hashmap.delete_field(uuid\u003dfield_id)"},{"line_number":99,"context_line":"        except db_api.NoSuchField as e:"},{"line_number":100,"context_line":"            pecan.abort(404, str(e))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_15f2516f","line":100,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/rating/hash/controllers/group.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            group_db \u003d hashmap.get_group(uuid\u003dgroup_id)"},{"line_number":95,"context_line":"            return group_models.Group(**group_db.export_model())"},{"line_number":96,"context_line":"        except db_api.NoSuchGroup as e:"},{"line_number":97,"context_line":"            pecan.abort(404, str(e))"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    @wsme_pecan.wsexpose(group_models.Group,"},{"line_number":100,"context_line":"                         body\u003dgroup_models.Group,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_9582e1a3","line":97,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            return group_models.Group("},{"line_number":115,"context_line":"                **group_db.export_model())"},{"line_number":116,"context_line":"        except db_api.GroupAlreadyExists as e:"},{"line_number":117,"context_line":"            pecan.abort(409, str(e))"},{"line_number":118,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":119,"context_line":"            pecan.abort(400, str(e))"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_f58d1dd4","line":117,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        except db_api.GroupAlreadyExists as e:"},{"line_number":117,"context_line":"            pecan.abort(409, str(e))"},{"line_number":118,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":119,"context_line":"            pecan.abort(400, str(e))"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    @wsme_pecan.wsexpose(None,"},{"line_number":122,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_d588d9c3","line":119,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        try:"},{"line_number":133,"context_line":"            hashmap.delete_group(uuid\u003dgroup_id, recurse\u003drecursive)"},{"line_number":134,"context_line":"        except db_api.NoSuchGroup as e:"},{"line_number":135,"context_line":"            pecan.abort(404, str(e))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_35bdd567","line":135,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/rating/hash/controllers/mapping.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                uuid\u003dmapping_id)"},{"line_number":45,"context_line":"            return group_models.Group(**group_db.export_model())"},{"line_number":46,"context_line":"        except db_api.MappingHasNoGroup as e:"},{"line_number":47,"context_line":"            pecan.abort(404, str(e))"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @wsme_pecan.wsexpose(mapping_models.MappingCollection,"},{"line_number":50,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_f54a3daa","line":47,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            return mapping_models.Mapping("},{"line_number":105,"context_line":"                **mapping_db.export_model())"},{"line_number":106,"context_line":"        except db_api.NoSuchMapping as e:"},{"line_number":107,"context_line":"            pecan.abort(404, str(e))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    @wsme_pecan.wsexpose(mapping_models.Mapping,"},{"line_number":110,"context_line":"                         body\u003dmapping_models.Mapping,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_d545799c","line":107,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":131,"context_line":"            return mapping_models.Mapping("},{"line_number":132,"context_line":"                **mapping_db.export_model())"},{"line_number":133,"context_line":"        except db_api.MappingAlreadyExists as e:"},{"line_number":134,"context_line":"            pecan.abort(409, str(e))"},{"line_number":135,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":136,"context_line":"            pecan.abort(400, str(e))"},{"line_number":137,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_35c67517","line":134,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        except db_api.MappingAlreadyExists as e:"},{"line_number":134,"context_line":"            pecan.abort(409, str(e))"},{"line_number":135,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":136,"context_line":"            pecan.abort(400, str(e))"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    @wsme_pecan.wsexpose(None,"},{"line_number":139,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_15c9b123","line":136,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":157,"context_line":"                tenant_id\u003dmapping.tenant_id)"},{"line_number":158,"context_line":"            pecan.response.headers[\u0027Location\u0027] \u003d pecan.request.path"},{"line_number":159,"context_line":"        except db_api.MappingAlreadyExists as e:"},{"line_number":160,"context_line":"            pecan.abort(409, str(e))"},{"line_number":161,"context_line":"        except db_api.NoSuchMapping as e:"},{"line_number":162,"context_line":"            pecan.abort(404, str(e))"},{"line_number":163,"context_line":"        except db_api.ClientHashMapError as e:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_75cc6d33","line":160,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        except db_api.MappingAlreadyExists as e:"},{"line_number":160,"context_line":"            pecan.abort(409, str(e))"},{"line_number":161,"context_line":"        except db_api.NoSuchMapping as e:"},{"line_number":162,"context_line":"            pecan.abort(404, str(e))"},{"line_number":163,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":164,"context_line":"            pecan.abort(400, str(e))"},{"line_number":165,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_55cfa926","line":162,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":161,"context_line":"        except db_api.NoSuchMapping as e:"},{"line_number":162,"context_line":"            pecan.abort(404, str(e))"},{"line_number":163,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":164,"context_line":"            pecan.abort(400, str(e))"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @wsme_pecan.wsexpose(None,"},{"line_number":167,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_b5d9e5f4","line":164,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":175,"context_line":"        try:"},{"line_number":176,"context_line":"            hashmap.delete_mapping(uuid\u003dmapping_id)"},{"line_number":177,"context_line":"        except db_api.NoSuchMapping as e:"},{"line_number":178,"context_line":"            pecan.abort(404, str(e))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_95d4a1bc","line":178,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/rating/hash/controllers/service.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            service_db \u003d hashmap.get_service(uuid\u003dservice_id)"},{"line_number":60,"context_line":"            return service_models.Service(**service_db.export_model())"},{"line_number":61,"context_line":"        except db_api.NoSuchService as e:"},{"line_number":62,"context_line":"            pecan.abort(404, str(e))"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    @wsme_pecan.wsexpose(service_models.Service,"},{"line_number":65,"context_line":"                         body\u003dservice_models.Service,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_75e58da3","line":62,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            return service_models.Service("},{"line_number":80,"context_line":"                **service_db.export_model())"},{"line_number":81,"context_line":"        except db_api.ServiceAlreadyExists as e:"},{"line_number":82,"context_line":"            pecan.abort(409, str(e))"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    @wsme_pecan.wsexpose(None, ck_types.UuidType(), status_code\u003d204)"},{"line_number":85,"context_line":"    def delete(self, service_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_55e84979","line":82,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            hashmap.delete_service(uuid\u003dservice_id)"},{"line_number":93,"context_line":"        except db_api.NoSuchService as e:"},{"line_number":94,"context_line":"            pecan.abort(404, str(e))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_b502853c","line":94,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/rating/hash/controllers/threshold.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                uuid\u003dthreshold_id)"},{"line_number":45,"context_line":"            return group_models.Group(**group_db.export_model())"},{"line_number":46,"context_line":"        except db_api.ThresholdHasNoGroup as e:"},{"line_number":47,"context_line":"            pecan.abort(404, str(e))"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @wsme_pecan.wsexpose(threshold_models.ThresholdCollection,"},{"line_number":50,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_95fdc13c","line":47,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            return threshold_models.Threshold("},{"line_number":104,"context_line":"                **threshold_db.export_model())"},{"line_number":105,"context_line":"        except db_api.NoSuchThreshold as e:"},{"line_number":106,"context_line":"            pecan.abort(404, str(e))"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    @wsme_pecan.wsexpose(threshold_models.Threshold,"},{"line_number":109,"context_line":"                         body\u003dthreshold_models.Threshold,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_f5f87d4a","line":106,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            return threshold_models.Threshold("},{"line_number":131,"context_line":"                **threshold_db.export_model())"},{"line_number":132,"context_line":"        except db_api.ThresholdAlreadyExists as e:"},{"line_number":133,"context_line":"            pecan.abort(409, str(e))"},{"line_number":134,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":135,"context_line":"            pecan.abort(400, str(e))"},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_d5f3b96b","line":133,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        except db_api.ThresholdAlreadyExists as e:"},{"line_number":133,"context_line":"            pecan.abort(409, str(e))"},{"line_number":134,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":135,"context_line":"            pecan.abort(400, str(e))"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @wsme_pecan.wsexpose(None,"},{"line_number":138,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_3594b5e7","line":135,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":156,"context_line":"                tenant_id\u003dthreshold.tenant_id)"},{"line_number":157,"context_line":"            pecan.response.headers[\u0027Location\u0027] \u003d pecan.request.path"},{"line_number":158,"context_line":"        except db_api.ThresholdAlreadyExists as e:"},{"line_number":159,"context_line":"            pecan.abort(409, str(e))"},{"line_number":160,"context_line":"        except db_api.NoSuchThreshold as e:"},{"line_number":161,"context_line":"            pecan.abort(404, str(e))"},{"line_number":162,"context_line":"        except db_api.ClientHashMapError as e:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_1597f1ec","line":159,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        except db_api.ThresholdAlreadyExists as e:"},{"line_number":159,"context_line":"            pecan.abort(409, str(e))"},{"line_number":160,"context_line":"        except db_api.NoSuchThreshold as e:"},{"line_number":161,"context_line":"            pecan.abort(404, str(e))"},{"line_number":162,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":163,"context_line":"            pecan.abort(400, str(e))"},{"line_number":164,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_759aad12","line":161,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        except db_api.NoSuchThreshold as e:"},{"line_number":161,"context_line":"            pecan.abort(404, str(e))"},{"line_number":162,"context_line":"        except db_api.ClientHashMapError as e:"},{"line_number":163,"context_line":"            pecan.abort(400, str(e))"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    @wsme_pecan.wsexpose(None,"},{"line_number":166,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_559de906","line":163,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        try:"},{"line_number":175,"context_line":"            hashmap.delete_threshold(uuid\u003dthreshold_id)"},{"line_number":176,"context_line":"        except db_api.NoSuchThreshold as e:"},{"line_number":177,"context_line":"            pecan.abort(404, str(e))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_b58725b6","line":177,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/rating/hash/db/sqlalchemy/alembic/versions/f8c799db4aa0_fix_unnamed_constraints.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#"},{"line_number":2,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":3,"context_line":"# not use this file except in compliance with the License. You may obtain"},{"line_number":4,"context_line":"# a copy of the License at"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_15c091df","line":1,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: E902 IndentationError: unindent does not match any outer indentation level","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        ops_list \u003d [POST_OPS]"},{"line_number":208,"context_line":"    for cur_ops in ops_list:"},{"line_number":209,"context_line":"        for constraint_type in (\u0027foreignkey\u0027, \u0027unique\u0027, \u0027primary\u0027):"},{"line_number":210,"context_line":"            for table_name, constraints in "},{"line_number":211,"context_line":"                    cur_ops.get(constraint_type, dict()).items():"},{"line_number":212,"context_line":"                for constraint in constraints:"},{"line_number":213,"context_line":"                    old_name \u003d constraint[0]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_75b3cd9a","line":210,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: W291 trailing whitespace","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":208,"context_line":"    for cur_ops in ops_list:"},{"line_number":209,"context_line":"        for constraint_type in (\u0027foreignkey\u0027, \u0027unique\u0027, \u0027primary\u0027):"},{"line_number":210,"context_line":"            for table_name, constraints in "},{"line_number":211,"context_line":"                    cur_ops.get(constraint_type, dict()).items():"},{"line_number":212,"context_line":"                for constraint in constraints:"},{"line_number":213,"context_line":"                    old_name \u003d constraint[0]"},{"line_number":214,"context_line":"                    translate_op("}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_55b6898a","line":211,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: E113 unexpected indentation","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/rating/pyscripts/controllers/script.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            script_db \u003d pyscripts.get_script(uuid\u003dscript_id)"},{"line_number":71,"context_line":"            return script_models.Script(**script_db.export_model())"},{"line_number":72,"context_line":"        except db_api.NoSuchScript as e:"},{"line_number":73,"context_line":"            pecan.abort(404, str(e))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    @wsme_pecan.wsexpose(script_models.Script,"},{"line_number":76,"context_line":"                         body\u003dscript_models.Script,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_b5b0c58c","line":73,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":91,"context_line":"            return script_models.Script("},{"line_number":92,"context_line":"                **script_db.export_model())"},{"line_number":93,"context_line":"        except db_api.ScriptAlreadyExists as e:"},{"line_number":94,"context_line":"            pecan.abort(409, str(e))"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    @wsme_pecan.wsexpose(script_models.Script,"},{"line_number":97,"context_line":"                         ck_types.UuidType(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_95ab011c","line":94,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            return script_models.Script("},{"line_number":117,"context_line":"                **script_db.export_model())"},{"line_number":118,"context_line":"        except db_api.NoSuchScript as e:"},{"line_number":119,"context_line":"            pecan.abort(404, str(e))"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    @wsme_pecan.wsexpose(None, ck_types.UuidType(), status_code\u003d204)"},{"line_number":122,"context_line":"    def delete(self, script_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_f5a6bd53","line":119,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        try:"},{"line_number":129,"context_line":"            pyscripts.delete_script(uuid\u003dscript_id)"},{"line_number":130,"context_line":"        except db_api.NoSuchScript as e:"},{"line_number":131,"context_line":"            pecan.abort(404, str(e))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_d5a1f93b","line":131,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}],"cloudkitty/storage/v2/influx.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":17,"context_line":"import influxdb"},{"line_number":18,"context_line":"from oslo_config import cfg"},{"line_number":19,"context_line":"from oslo_log import log"},{"line_number":20,"context_line":"from cloudkitty import dataframe"},{"line_number":21,"context_line":"from cloudkitty.storage import v2 as v2_storage"},{"line_number":22,"context_line":"from cloudkitty.utils import tz as tzutils"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_b5544555","line":20,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: H306: imports not in alphabetical order (oslo_log.log, cloudkitty.dataframe)","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"ba3cdcaf2f8f1b02cb35a87755f0209b1329d3fe","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from cloudkitty.storage import v2 as v2_storage"},{"line_number":20,"context_line":"from cloudkitty.utils import tz as tzutils"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from oslo_config import cfg"},{"line_number":23,"context_line":"from oslo_log import log"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d log.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f560f44_bf95ff34","line":23,"range":{"start_line":22,"start_character":0,"end_line":23,"end_character":24},"updated":"2020-10-01 20:02:48.000000000","message":"Why move the imports here? They should have stayed with the influxdb one.\n\nI think you had a complaint from syntax checks because you didn\u0027t have an empty line between them and the cloudkitty imports.","commit_id":"199a203385dea6ff63df5ab55b0aee4479deb1fb"}],"cloudkitty/tests/test_pyscripts.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":20,"context_line":"import zlib"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from oslo_utils import uuidutils"},{"line_number":23,"context_line":"from cloudkitty.rating import pyscripts"},{"line_number":24,"context_line":"from cloudkitty.rating.pyscripts.db import api"},{"line_number":25,"context_line":"from cloudkitty import tests"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_15641148","line":23,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: H306: imports not in alphabetical order (oslo_utils.uuidutils, cloudkitty.rating.pyscripts)","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"ba3cdcaf2f8f1b02cb35a87755f0209b1329d3fe","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from cloudkitty.rating import pyscripts"},{"line_number":23,"context_line":"from cloudkitty.rating.pyscripts.db import api"},{"line_number":24,"context_line":"from cloudkitty import tests"},{"line_number":25,"context_line":"from oslo_utils import uuidutils"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"FAKE_UUID \u003d \u00276c1b8a30-797f-4b7e-ad66-9879b79059fb\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f560f44_ff9e5753","line":25,"range":{"start_line":25,"start_character":0,"end_line":25,"end_character":32},"updated":"2020-10-01 20:02:48.000000000","message":"This import should be separate, as it was before.","commit_id":"199a203385dea6ff63df5ab55b0aee4479deb1fb"}],"cloudkitty/utils/__init__.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"bea56d1b057a2590b4c4896e88712c39ff3c46db","unresolved":false,"context_lines":[{"line_number":249,"context_line":"            shutil.rmtree(tmpdir)"},{"line_number":250,"context_line":"        except OSError as e:"},{"line_number":251,"context_line":"            LOG.debug(\u0027Could not remove tmpdir: %s\u0027,"},{"line_number":252,"context_line":"                      str(e))"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"def mutate(value, mode\u003d\u0027NONE\u0027):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f560f44_3562f516","line":252,"updated":"2020-09-28 11:53:00.000000000","message":"pep8: C314 str() and unicode() cannot be used on an exception.  Remove or use str()","commit_id":"c5b39528615e1312055beaf094a4b3c5d867f5f6"}]}
