Skip to content

Commit

Permalink
add an unclear no cover pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Coelho committed Nov 9, 2024
1 parent 44496b5 commit 88d5f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiosql/query_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _get_name_op(self, text: str) -> Tuple[str, SQLOperationType, Optional[List[
if params == ['']: # handle "( )"
params = []
operation = _OP_TYPES[nameop["op"]]
if params and operation == "#":
if params and operation == "#": # pragma: no cover # FIXME it is covered?
raise SQLParseException(f'cannot use named parameters in SQL script: "{qname_spec}"')
return nameop["name"], operation, params

Expand Down

0 comments on commit 88d5f24

Please sign in to comment.