ilm.py
def main():
	''' Run the script with a loop to by pass errors '''
	for attempts in range(10):
		dateSTR = datetime.datetime.now().strftime('%d %B %Y @ %H:%M')
		try:
			info = RSS(random.choice(RSSlist))
			Tweet(info)
			print('\x1b[32m[+] Tweeted - {}\x1b[0m'.format(dateSTR))
			break
		except Exception as TheError:
			print('\x1b[31m[-] ERROR - {} {}\x1b[0m'.format(TheError, dateSTR))
			continue
 Run the script with a loop to by pass errors 
Run the script with a loop to by pass errors
Run the script with a loop to by pass errors
def main():
	for attempts in range(10):
		dateSTR = datetime.datetime.now().strftime('%d %B %Y @ %H:%M')
		try:
			info = RSS(random.choice(RSSlist))
			Tweet(info)
			print('\x1b[32m[+] Tweeted - {}\x1b[0m'.format(dateSTR))
			break
		except Exception as TheError:
			print('\x1b[31m[-] ERROR - {} {}\x1b[0m'.format(TheError, dateSTR))
			continue
def main ( ) : for attempts in range ( 10 ) : dateSTR = datetime . datetime . now ( ) . strftime ( '%d %B %Y @ %H:%M' ) try : info = RSS ( random . choice ( RSSlist ) ) Tweet ( info ) print ( '\x1b[32m[+] Tweeted - {}\x1b[0m' . format ( dateSTR ) ) break except Exception as TheError : print ( '\x1b[31m[-] ERROR - {} {}\x1b[0m' . format ( TheError , dateSTR ) ) continue
Run the script with a loop to by pass errors
Run the script with a loop to by pass errors
''' Run the script with a loop to by pass errors '''