From fb3d485ced829950812cd764b81608b7927bb5cc Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 20 Dec 2014 00:58:40 -0800 Subject: [PATCH] Fixed issue with issue submitter deleting all errors before submitting them all. --- sickbeard/logger.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sickbeard/logger.py b/sickbeard/logger.py index d18cc5b1..23050250 100644 --- a/sickbeard/logger.py +++ b/sickbeard/logger.py @@ -161,13 +161,14 @@ class Logger(object): regex = "^(%s)\s*([A-Z]+)\s*(.+?)\s*\:\:\s*(.*)$" % curError.time + maxlines = 50 pastebin_url = None for i, x in enumerate(reversed(log_data)): x = ek.ss(x) match = re.match(regex, x) if match: level = match.group(2) - if reverseNames[level] >= ERROR: + if reverseNames[level] == ERROR: paste_data = "".join(log_data[len(log_data) - i - 50:]) pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', paste_data) break @@ -192,10 +193,8 @@ class Logger(object): if not sickbeard.GIT_AUTOISSUES: ui.notifications.message('Your issue ticket #%s was submitted successfully!' % issue.number) - - classes.ErrorViewer.clear() - except Exception as e: - pass + finally: + classes.ErrorViewer.clear() class Wrapper(object):