kennknowles commented on code in PR #34390:
URL: https://github.com/apache/beam/pull/34390#discussion_r2029128118


##########
sdks/python/apache_beam/io/textio.py:
##########
@@ -781,6 +782,13 @@ def __init__(
     """
 
     super().__init__(**kwargs)
+    if file_pattern:
+      try:
+        if not os.path.dirname(file_pattern):
+          file_pattern = os.path.join('.', file_pattern)
+      except TypeError:

Review Comment:
   Seems like a very broad exception catch. What is the failure mode that you 
are handling?



-- 
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-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to