Skip to content

Commit 4433ce6

Browse files
committed
fix lint
1 parent 396b3ab commit 4433ce6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sdks/python/apache_beam/io/gcp/pubsub.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,14 @@ def __init__(self, transform):
608608
if pipeline_options:
609609
try:
610610
standard_options = pipeline_options.view_as(StandardOptions)
611-
streaming_info = f'streaming={standard_options.streaming}'
612-
except:
611+
streaming_info = 'streaming=%s' % standard_options.streaming
612+
except Exception:
613613
streaming_info = 'streaming=unknown'
614614

615615
logging.warning(
616-
f'PubSub unsupported feature check: '
617-
f'runner={runner_info}, {streaming_info}')
616+
'PubSub unsupported feature check: runner=%s, %s',
617+
runner_info,
618+
streaming_info)
618619

619620
if transform.id_label:
620621
raise NotImplementedError(

0 commit comments

Comments
 (0)