You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "tvalentyn (via GitHub)" <gi...@apache.org> on 2023/06/21 19:49:14 UTC
[GitHub] [beam] tvalentyn commented on a diff in pull request #25965: Replace StorageV1 client with GCS client
tvalentyn commented on code in PR #25965:
URL: https://github.com/apache/beam/pull/25965#discussion_r1237605944
##########
sdks/python/apache_beam/examples/complete/game/user_score.py:
##########
@@ -177,12 +178,20 @@ def format_user_score_sums(user_score):
(user, score) = user_score
return 'user: %s, total_score: %s' % (user, score)
- ( # pylint: disable=expression-not-assigned
- p
- | 'ReadInputText' >> beam.io.ReadFromText(args.input)
- | 'UserScore' >> UserScore()
- | 'FormatUserScoreSums' >> beam.Map(format_user_score_sums)
- | 'WriteUserScoreSums' >> beam.io.WriteToText(args.output))
+ try:
Review Comment:
the issue is closed, by I still see the try-excepts. Are they still necessary?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org