Skip to content

Commit 6f2860a

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: Fix error when allowed_plugins is set to None.
PiperOrigin-RevId: 586451587
1 parent a34533f commit 6f2860a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

google/cloud/aiplatform/tensorboard/uploader_tracker.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,12 @@ def _create_uploader(
255255
)
256256

257257
plugins = uploader_constants.ALLOWED_PLUGINS
258-
plugins += [
259-
plugin
260-
for plugin in allowed_plugins
261-
if plugin not in uploader_constants.ALLOWED_PLUGINS
262-
]
258+
if allowed_plugins:
259+
plugins += [
260+
plugin
261+
for plugin in allowed_plugins
262+
if plugin not in uploader_constants.ALLOWED_PLUGINS
263+
]
263264

264265
tensorboard_uploader = TensorBoardUploader(
265266
experiment_name=tensorboard_experiment_name,

0 commit comments

Comments
 (0)