Skip to content

Commit 2270a35

Browse files
committed
validate
1 parent 035024f commit 2270a35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/archery/archery/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CommentBot:
7979
def __init__(self, name, handler, token=None):
8080
# TODO(kszucs): validate
8181
assert isinstance(name, str)
82-
assert callable(self.handler)
82+
assert callable(handler)
8383
self.name = name
8484
self.handler = handler
8585
self.github = github.Github(token)

dev/archery/archery/tests/test_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import click
88
from click.testing import CliRunner
99

10-
from archery.bot import CommentBot, CommandError, group, bot
10+
from archery.bot import CommentBot, CommandError, group
1111

1212

1313
@pytest.fixture

0 commit comments

Comments
 (0)