From b7ab8d0ce43ca2c86de1e65367b9bcd25138157a Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 28 Jul 2011 16:56:59 -0400 Subject: [PATCH] fix to urlopen call --- oyster/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oyster/client.py b/oyster/client.py index 151c495..33ce363 100644 --- a/oyster/client.py +++ b/oyster/client.py @@ -28,6 +28,7 @@ class Client(object): retry_wait_seconds=5 ) + def _wipe(self): """ exists primarily for debug use, wipes entire db """ self.db.drop_collection('tracked') @@ -67,7 +68,7 @@ class Client(object): do_put = True # update strategies could be implemented here as well - resp = self.scraper.urlopen(doc['url']) + data = self.scraper.urlopen(doc['url']) # versioning is a concept for future use, but here's how it can work: # versioning functions take doc & data, and return True if data is