Removed debug info

pull/50/head
Thomas Sileo 11 years ago
parent 08313c191c
commit e50ecc7811

@ -58,10 +58,9 @@ class SMTP(object):
def __enter__(self):
klass = (smtplib.SMTP_SSL if self.conf.get('security') == 'ssl' else smtplib.SMTP)
klass = smtplib.SMTP
self.client = klass(host=self.conf.get('host'), port=self.conf.getint('port'))
#if self.conf.get('security') == 'starttls':
# self.client.starttls();
if self.conf.get('security') == 'starttls':
self.client.starttls()
if self.conf.get('username') and self.conf.get('password'):
self.client.login(self.conf.get('username'),

@ -123,7 +123,6 @@ class API(object):
valid, reason = API.verify(data)
if not valid:
print valid, "VALID"
return BadRequest(reason)
for field in ("author", "email"):
@ -135,7 +134,6 @@ class API(object):
with self.isso.lock:
if uri not in self.threads:
print "URI", uri, local('origin')
with http.curl('GET', local("origin"), uri) as resp:
if resp and resp.status == 200:
uri, title = parse.thread(resp.read(), id=uri)

Loading…
Cancel
Save