Commit c76e5e6e authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add a check for 'check' to proc.Executor.__call__

parent da2f20a7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -331,6 +331,13 @@ class Executor(_ExecutorBase):
		"""
		assert not deserialiser or not query

		# Check interferes with query, simulate it not being accepted
		if "check" in kwargs:
			raise TypeError(
				f"{self.__class__.__name__}.__call__() got an unexpected keyword "
				"argument 'check'",
			)

		data = (
			b"" if input is None else
			input.encode() if isinstance(input, str) else