We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d86dd0 commit e26ec56Copy full SHA for e26ec56
packages/jupyter-ai/jupyter_ai/tests/completions/test_handlers.py
@@ -1,5 +1,4 @@
1
import json
2
-import traceback
3
from types import SimpleNamespace
4
from typing import Union
5
@@ -27,9 +26,9 @@ def __init__(self, **kwargs):
27
26
if "responses" not in kwargs:
28
kwargs["responses"] = ["Test response"]
29
super().__init__(**kwargs)
30
-
31
- def _acall(self, *args, **kwargs):
32
- if self.raise_exc:
+
+ async def _acall(self, *args, **kwargs):
+ if hasattr(self, 'raise_exc') and self.raise_exc:
33
raise Exception("Test exception")
34
else:
35
return super()._call(*args, **kwargs)
0 commit comments