File tree Expand file tree Collapse file tree
hyperbrowser/client/managers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ def __init__(self, client):
1111 self ._client = client
1212
1313 async def create (self , params : CreateExtensionParams ) -> ExtensionResponse :
14- file_path = params .file_path
14+ raw_file_path = params .file_path
1515 payload = params .model_dump (exclude_none = True , by_alias = True )
1616 payload .pop ("filePath" , None )
1717
18- ensure_existing_file_path (
19- file_path ,
20- missing_file_message = f"Extension file not found at path: { file_path } " ,
21- not_file_message = f"Extension file path must point to a file: { file_path } " ,
18+ file_path = ensure_existing_file_path (
19+ raw_file_path ,
20+ missing_file_message = f"Extension file not found at path: { raw_file_path } " ,
21+ not_file_message = f"Extension file path must point to a file: { raw_file_path } " ,
2222 )
2323
2424 try :
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ def __init__(self, client):
1111 self ._client = client
1212
1313 def create (self , params : CreateExtensionParams ) -> ExtensionResponse :
14- file_path = params .file_path
14+ raw_file_path = params .file_path
1515 payload = params .model_dump (exclude_none = True , by_alias = True )
1616 payload .pop ("filePath" , None )
1717
18- ensure_existing_file_path (
19- file_path ,
20- missing_file_message = f"Extension file not found at path: { file_path } " ,
21- not_file_message = f"Extension file path must point to a file: { file_path } " ,
18+ file_path = ensure_existing_file_path (
19+ raw_file_path ,
20+ missing_file_message = f"Extension file not found at path: { raw_file_path } " ,
21+ not_file_message = f"Extension file path must point to a file: { raw_file_path } " ,
2222 )
2323
2424 try :
You can’t perform that action at this time.
0 commit comments