Skip to content

Commit bb79ef6

Browse files
committed
chore: use python builtin exit instead of raise SystemExit exception
1 parent af9c22a commit bb79ef6

File tree

1 file changed

+1
-1
lines changed
  • packages/language_server/src/robotcode/language_server/common

1 file changed

+1
-1
lines changed

packages/language_server/src/robotcode/language_server/common/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def _shutdown(self, *args: Any, **kwargs: Any) -> None:
269269
async def _exit(self, *args: Any, **kwargs: Any) -> None:
270270
await self.on_exit(self)
271271

272-
raise SystemExit(0 if self.shutdown_received else 1)
272+
exit(0 if self.shutdown_received else 1)
273273

274274
@rpc_method(name="$/setTrace", param_type=SetTraceParams)
275275
@__logger.call

0 commit comments

Comments
 (0)