Skip to content

Commit

Permalink
Thread Loop Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VGR6479 committed Nov 21, 2024
1 parent 21ea3dd commit d02bf9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion gerobug_dashboard/geromail/geroparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ def run():

# TEST LOGIN (VALIDATE CREDENTIALS)
if mailbox.mailbox_status == 0:
mail = imaplib.IMAP4_SSL(IMAP_SERVER)
try:
mail = imaplib.IMAP4_SSL(IMAP_SERVER)
mail.login(EMAIL,PWD)

except Exception as e:
Expand Down
3 changes: 0 additions & 3 deletions gerobug_dashboard/geromail/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from . import geroparser



class RunGeromailThread(threading.Thread):

def __init__(self, total):
Expand All @@ -18,8 +17,6 @@ def run(self):

except Exception as e:
logging.getLogger("Gerologger").error("Geroparser Thread Failed: " + str(e))
global PARSER_RUNNING
PARSER_RUNNING = False

time.sleep(30)

Expand Down

0 comments on commit d02bf9f

Please sign in to comment.