Skip to content

Commit

Permalink
Fix is_update_safe exception condition
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Dec 30, 2024
1 parent 151e571 commit 0048a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node_cli/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class NodeStatuses(Enum):


def is_update_safe(sync_node: bool = False) -> bool:
if not sync_node and (not is_admin_running() or not is_api_running()):
if not sync_node and (not is_admin_running() and not is_api_running()):
return True
if sync_node and not is_sync_admin_running():
return True
Expand Down

0 comments on commit 0048a1e

Please sign in to comment.