corrected nesting of the data dictionary
This commit is contained in:
parent
6e7364cb00
commit
c0514b68b0
@ -75,7 +75,7 @@ class SpoolSentry(object):
|
|||||||
|
|
||||||
def send_data(self, data):
|
def send_data(self, data):
|
||||||
data = {'data': base64.b64encode(pickle.dumps(data).encode('zlib')),
|
data = {'data': base64.b64encode(pickle.dumps(data).encode('zlib')),
|
||||||
'key': self.key}
|
'key': self.key}
|
||||||
req = urllib2.Request(self.sentry_url)
|
req = urllib2.Request(self.sentry_url)
|
||||||
res = urllib2.urlopen(req, urllib.urlencode(data))
|
res = urllib2.urlopen(req, urllib.urlencode(data))
|
||||||
if res.getcode() != 200:
|
if res.getcode() != 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user