From ffbdf3f5458468f426a26a281b0249b0a4af6e90 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 17 Jul 2023 06:50:55 +0530 Subject: [PATCH] ... --- kittens/transfer/algorithm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kittens/transfer/algorithm.c b/kittens/transfer/algorithm.c index 54c93b970..e8cf9d135 100644 --- a/kittens/transfer/algorithm.c +++ b/kittens/transfer/algorithm.c @@ -301,6 +301,8 @@ apply_op(Patcher *self, Operation op, PyObject *read, PyObject *write) { if (memcmp(expected, op.data.buf, op.data.len) != 0) { PyErr_SetString(RsyncError, "checksum does not match, this usually happens because one of the involved files was altered while the operation was in progress"); return false; } } return true; } + PyErr_SetString(RsyncError, "Unknown operation type"); + return false; } static PyObject*