Skip to content

Commit 6537e01

Browse files
committed
helper.py - Bugfix
1 parent 2245533 commit 6537e01

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/helper.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,10 @@ def download(url, headers=None):
2424
logging.warn('[!] Critical Error - Cannot connect to site')
2525
sleep(5)
2626
logging.warn('[!] Retrying...')
27-
response = self.download(url)
27+
response = download(url)
2828
return response
2929

3030

31-
def record(text):
32-
'''
33-
record(text) : Records text to the tweet_history file
34-
35-
'''
36-
with open(settings.tweet_history, 'a') as history:
37-
history.write(strftime('[%b %d, %Y %I:%M:%S]') + text + '\n')
38-
39-
4031
def log(text):
4132
'''
4233
log(text): Logs message to both STDOUT and to .output_log file

0 commit comments

Comments
 (0)