<commit_before>#from CreateTableFromDatabase import getRankingsFromDatabase
import time
from CheckAndPostForSeriesSubmissions import checkNewSubmissions

# Refreshes all other scripts every couple of minutes
def refreshScripts():

    while True:
        checkNewSubmissions()
        timeToSleep = 900
        print("Sleeping for " + str(timeToSleep / 60) + " minutes.")
        time.sleep(timeToSleep)
        print("")



if __name__ == '__main__':
    refreshScripts()<commit_msg>Refresh script now displays error message<commit_after>### exclam /usr/bin/env python3

#from CreateTableFromDatabase import getRankingsFromDatabase
import time
from CheckAndPostForSeriesSubmissions import checkNewSubmissions

# Refreshes all other scripts every couple of minutes
def refreshScripts():

    while True:
        try:
            checkNewSubmissions()
        except Exception as e:
            #traceback.print_exc()
            print("Found error, skipping this loop. ")
            print(str(e))
        timeToSleep = 900
        print("Sleeping for " + str(timeToSleep / 60) + " minutes.")
        time.sleep(timeToSleep)
        print("")



if __name__ == '__main__':
    refreshScripts()
{'fraction_non_alphanumeric': 0.08214585079631181, 'fraction_numerical': 0.009220452640402346, 'mean_word_length': 3.2190812720848054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7273571', 'n_tokens_mistral': 349, 'n_tokens_neox': 318, 'n_words': 92}