corrected nesting of the data dictionary

This commit is contained in:
John Dewey
2011-01-24 18:39:47 -08:00
parent 04f4a40709
commit 4983384e33

View File

@@ -75,7 +75,7 @@ class SpoolSentry(object):
def send_data(self, data):
data = {'data': base64.b64encode(pickle.dumps(data).encode('zlib')),
'key': self.key}
'key': self.key}
req = urllib2.Request(self.sentry_url)
res = urllib2.urlopen(req, urllib.urlencode(data))
if res.getcode() != 200: