Skip to content

Commit

Permalink
Fix issue with current_namespace when the namespace is None (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel authored Jul 2, 2024
1 parent 120f6ef commit 5170f37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metaflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ def __init__(
self._attempt = attempt
self._current_namespace = _current_namespace or get_namespace()
self._namespace_check = _namespace_check
# If the current namespace is False, we disable checking for namespace for this
# and all children objects. Not setting namespace_check to False has the consequence
# of preventing access to children objects after the namespace changes
if self._current_namespace is None:
self._namespace_check = False

if self._attempt is not None:
if self._NAME not in ["task", "artifact"]:
Expand Down

0 comments on commit 5170f37

Please sign in to comment.