Commit 4cf8757e authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Change AssertionError to TypeError

Closes #12
parent ac516eea
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -329,7 +329,9 @@ class Executor(_ExecutorBase):
			If "query" is not true any non-zero return code will cause CalledProcessError to
			be raised.
		"""
		assert not deserialiser or not query
		if __debug__:
			if deserialiser and query:
				raise TypeError("'deserialiser' and 'query' are mutually exclusive")

		data = (
			b"" if input is None else