We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c3af0 commit df78be0Copy full SHA for df78be0
sdks/python/apache_beam/io/gcp/pubsub.py
@@ -577,7 +577,7 @@ def __init__(self, transform):
577
578
# Check if using DirectRunner
579
runner_name = getattr(pipeline_options, 'runner', None)
580
- if runner_name and 'DirectRunner' in str(runner_name):
+ if runner_name is None or 'DirectRunner' in str(runner_name):
581
should_raise_error = True
582
583
# Check if in batch mode (not streaming)
0 commit comments