From 28f6df93cb825f0ceeb931999f7a13724e8eed6d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 10 Jun 2009 22:33:20 +0900 Subject: [PATCH] assert response ok --- anki/sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anki/sync.py b/anki/sync.py index 306e263d3..72db20c98 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -992,6 +992,7 @@ and cards.id in %s""" % ids2str([c[0] for c in cards]))) os.close(fd) errcode, errmsg, headers = h.getreply() assert errcode == 200 + assert h.file.read() == "OK" finally: runHook("fullSyncFinished")