Skip to content

Commit

Permalink
Update node_metadata.py
Browse files Browse the repository at this point in the history
Signed-off-by: Sajid Alam <[email protected]>
  • Loading branch information
SajidAlamQB committed Oct 28, 2024
1 parent 6026657 commit 8a479e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package/kedro_viz/models/flowchart/node_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
Kedro metadata in a visualization graph.
"""

# pylint: disable=protected-access, missing-function-docstring

import inspect
import logging
from abc import ABC
Expand Down Expand Up @@ -248,7 +246,7 @@ def set_preview(cls, _):
return cls.dataset.preview()
return cls.dataset.preview(**preview_args)

except Exception as exc: # pylint: disable=broad-except
except Exception as exc: # noqa: BLE001
logger.warning(
"'%s' could not be previewed. Full exception: %s: %s",
cls.data_node.name,
Expand Down Expand Up @@ -278,7 +276,7 @@ def set_preview_type(cls, _):
)
return preview_type_name

except Exception as exc: # pylint: disable=broad-except # pragma: no cover
except Exception as exc: # noqa: BLE001 # pragma: no cover
logger.warning(
"'%s' did not have preview type. Full exception: %s: %s",
cls.data_node.name,
Expand Down

0 comments on commit 8a479e5

Please sign in to comment.