ilya-kozyrev commented on a change in pull request #16754:
URL: https://github.com/apache/beam/pull/16754#discussion_r800484752



##########
File path: playground/infrastructure/helper.py
##########
@@ -341,13 +342,13 @@ def _validate(tag: dict, supported_categories: List[str]) 
-> bool:
   # check that context line's value is integer
   context_line = tag.get(TagFields.context_line)
   if not isinstance(context_line, int):
-      logging.error(
-          "tag's field context_line is incorrect: %s \n"
-          "context_line variable should be integer format, "
-          "but tag contains: %s",
-          tag,
-          context_line)
-      valid = False
+    logging.error(
+        "tag's field context_line is incorrect: %s \n"
+        "context_line variable should be integer format, "

Review comment:
       ```suggestion
           "Context_line variable should be integer format, "
   ```

##########
File path: playground/infrastructure/helper.py
##########
@@ -341,13 +342,13 @@ def _validate(tag: dict, supported_categories: List[str]) 
-> bool:
   # check that context line's value is integer
   context_line = tag.get(TagFields.context_line)
   if not isinstance(context_line, int):
-      logging.error(
-          "tag's field context_line is incorrect: %s \n"
-          "context_line variable should be integer format, "
-          "but tag contains: %s",
-          tag,
-          context_line)
-      valid = False
+    logging.error(
+        "tag's field context_line is incorrect: %s \n"

Review comment:
       ```suggestion
           "Tag's field context_line is incorrect: %s \n"
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to