@@ -82,9 +82,7 @@ def handle(self) -> pd.DataFrame | None:
82
82
tools .export_to_sql (data , initials .export .target )
83
83
84
84
def _handle_file_query (self , initials : QueryInitials ) -> pd .DataFrame | None :
85
- """
86
- Parses and handles the specified file search/delete query.
87
- """
85
+ """Parses and handles the specified file search or delete query"""
88
86
89
87
parser = FileQueryParser (self ._query [self ._ctr :], initials .operation .operation )
90
88
query : SearchQuery | DeleteQuery = parser .parse_query ()
@@ -97,17 +95,15 @@ def _handle_file_query(self, initials: QueryInitials) -> pd.DataFrame | None:
97
95
operator .remove_files (query .condition , initials .operation .skip_err )
98
96
99
97
def _handle_data_query (self , initials : QueryInitials ) -> pd .DataFrame :
100
- """
101
- Parses and handles the specified data search query.
102
- """
98
+ """Parses and handles the specified data search query"""
103
99
104
100
if (
105
101
initials .export
106
102
and initials .operation .filemode == "bytes"
107
103
and initials .export .type_ == "database"
108
104
):
109
105
raise QueryParseError (
110
- "Exporting binary data to SQL databases is currently unsupported. "
106
+ "Exporting binary data to SQL databases is currently unsupported"
111
107
)
112
108
113
109
parser = FileDataQueryParser (self ._query [self ._ctr :])
@@ -260,7 +256,9 @@ def _parse_operation(self) -> OperationData:
260
256
)
261
257
262
258
if operation not in constants .OPERATION_ALIASES :
263
- raise QueryParseError (f"Invalid operation specified: { operation !r} " )
259
+ raise QueryParseError (
260
+ f"Invalid operation { operation !r} specified in the query"
261
+ )
264
262
265
263
# Verifying operation parameters syntax.
266
264
if not self ._operation_params_pattern .match (oparams ):
0 commit comments