File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ dependencies = [
38
38
" quart~=0.19.4" ,
39
39
" quart-trio~=0.11.1" ,
40
40
" trio~=0.23.1" ,
41
- " Werkzeug~=3.0.1"
41
+ " Werkzeug~=3.0.1" ,
42
+ ' exceptiongroup >= 1.2.0; python_version < "3.11"' ,
42
43
]
43
44
44
45
[tool .setuptools .dynamic ]
Original file line number Diff line number Diff line change 65
65
66
66
Handler = TypeVar ("Handler" , bound = Callable [..., Awaitable [object ]])
67
67
68
- if sys .version_info >= (3 , 11 ):
69
- BaseExceptionGroup_ = BaseExceptionGroup
70
- else :
71
- BaseExceptionGroup_ = trio .MultiError
68
+ if sys .version_info < (3 , 11 ):
69
+ from exceptiongroup import BaseExceptionGroup
72
70
73
71
74
72
def stop_sane () -> None :
@@ -642,7 +640,7 @@ def serve_scanner(
642
640
print (f"Serving on http://{ location } \n (CTRL + C to quit)" )
643
641
644
642
trio .run (serve_async , app , config_obj )
645
- except BaseExceptionGroup_ as exc :
643
+ except BaseExceptionGroup as exc :
646
644
caught = False
647
645
for ex in exc .exceptions :
648
646
if isinstance (ex , KeyboardInterrupt ):
You can’t perform that action at this time.
0 commit comments