From c8eab8f7a78e3e2186073dd733e3cc412770dba6 Mon Sep 17 00:00:00 2001 From: Paul Brown Date: Fri, 4 Oct 2013 20:08:15 -0500 Subject: [PATCH] Weird AssertionError This line was causing some AssertionErrors that didn't seem to make any sense. Is that line necessary? It seems to work fine when it's commented out to bypass the errors. Traceback (most recent call last): File "remoteInt3gSync.py", line 178, in sp_list.save() File "/usr/local/lib/python2.7/dist-packages/sharepoint/lists/__init__.py", line 322, in save assert not any(row._changed for row in self.rows) AssertionError --- sharepoint/lists/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/lists/__init__.py b/sharepoint/lists/__init__.py index 9c99550..512654c 100644 --- a/sharepoint/lists/__init__.py +++ b/sharepoint/lists/__init__.py @@ -319,7 +319,7 @@ def save(self): self._deleted_rows.remove(row) assert not self._deleted_rows - assert not any(row._changed for row in self.rows) + #assert not any(row._changed for row in self.rows) class SharePointListRow(object): # fields, list and opener are added as class attributes in SharePointList.Row