cleanup
This commit is contained in:
@@ -58,7 +58,9 @@ def extract_title(url):
|
||||
if 1 == code:
|
||||
return (3, 'failed: %s for %s' % (html_text, url))
|
||||
|
||||
if html_text:
|
||||
if not html_text:
|
||||
return (-1, 'error')
|
||||
|
||||
charset = ''
|
||||
if 'content-type' in headers:
|
||||
log.debug('content-type: ' + headers['content-type'])
|
||||
@@ -96,8 +98,6 @@ def extract_title(url):
|
||||
else:
|
||||
return (2, 'no title')
|
||||
|
||||
return (-1, 'error')
|
||||
|
||||
def send_reply(message, msg_obj=None):
|
||||
set_conf('request_counter', conf('request_counter') + 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user