KhaninArtur commented on a change in pull request #16754:
URL: https://github.com/apache/beam/pull/16754#discussion_r800511125



##########
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:
       I suppose, since `context_line` is a variable, it is better to start it 
with a lowercase letter, what do you think?

##########
File path: playground/infrastructure/grpc_client.py
##########
@@ -144,9 +145,12 @@ async def get_graph(self, pipeline_uuid: str) -> str:
     request = api_pb2.GetGraphRequest(pipeline_uuid=pipeline_uuid)
     try:
       response = await self._stub.GetGraph(request)
+      if response.graph == "":
+        logging.warning("Graph for %s wasn't generated", example_filepath)
       return response.graph
     except grpc.RpcError:
       # Some examples doesn't have graph (katas)

Review comment:
       ```suggestion
         # Some examples don't have a graph (e.g. katas)
   ```




-- 
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