Skip to content

Commit 83b6890

Browse files
committed
remove un wanted code
1 parent 5ed6e8a commit 83b6890

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

codeflash/lsp/beta.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ def process_args(server: CodeflashLanguageServer) -> Namespace:
303303
def check_api_key(server: CodeflashLanguageServer, _params: any) -> dict[str, str]:
304304
try:
305305
return _initialize_optimizer_if_api_key_is_valid(server)
306-
except Exception as e:
307-
return {"status": "error", "message": f"something went wrong while validating the api key{e!s}"}
306+
except Exception:
307+
return {"status": "error", "message": "something went wrong while validating the api key"}
308308

309309

310310
@server.feature("provideApiKey")
@@ -327,8 +327,8 @@ def provide_api_key(server: CodeflashLanguageServer, params: ProvideApiKeyParams
327327
if not is_successful(result):
328328
return {"status": "error", "message": result.failure()}
329329
return {"status": "success", "message": "Api key saved successfully", "user_id": user_id} # noqa: TRY300
330-
except Exception as e:
331-
return {"status": "error", "message": f"something went wrong while saving the api key{e!s}"}
330+
except Exception:
331+
return {"status": "error", "message": "something went wrong while saving the api key"}
332332

333333

334334
@server.feature("initializeFunctionOptimization")

0 commit comments

Comments
 (0)