Skip to content

Commit 04d90d7

Browse files
committed
Merge branch 'hotchocolate' of https://github.com/TheTripleV/robotpy-commands-v2 into hotchocolate
2 parents 401aa5f + 021ce43 commit 04d90d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commands2/button/networkbutton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, *args, **kwargs) -> None:
3535
if num_args == 1:
3636
entry: NetworkTableEntry = kwargs.get("entry") or args[0]
3737
super().__init__(
38-
lambda: NetworkTables.isConnected and entry.getBoolean(False)
38+
lambda: NetworkTables.isConnected() and entry.getBoolean(False)
3939
)
4040
elif num_args == 2:
4141
table = kwargs.get("table") or args[0]

commands2/coroutinecommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def initialize(self) -> None:
7676
if self.coroutine_function:
7777
self.coroutine = ensure_generator_function(self.coroutine_function)()
7878
elif self.coroutine and self.is_finished:
79-
RuntimeError("Generator objects cannot be reused.")
79+
raise RuntimeError("Generator objects cannot be reused.")
8080

8181
self.is_finished = False
8282

0 commit comments

Comments
 (0)