Skip to content

Commit e26ec56

Browse files
Darshan808dlqqq
authored andcommitted
test bug fix
1 parent 6d86dd0 commit e26ec56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/jupyter-ai/jupyter_ai/tests/completions/test_handlers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import traceback
32
from types import SimpleNamespace
43
from typing import Union
54

@@ -27,9 +26,9 @@ def __init__(self, **kwargs):
2726
if "responses" not in kwargs:
2827
kwargs["responses"] = ["Test response"]
2928
super().__init__(**kwargs)
30-
31-
def _acall(self, *args, **kwargs):
32-
if self.raise_exc:
29+
30+
async def _acall(self, *args, **kwargs):
31+
if hasattr(self, 'raise_exc') and self.raise_exc:
3332
raise Exception("Test exception")
3433
else:
3534
return super()._call(*args, **kwargs)

0 commit comments

Comments
 (0)