Private GIT

Skip to content
Snippets Groups Projects
Commit fb3d485c authored by echel0n's avatar echel0n
Browse files

Fixed issue with issue submitter deleting all errors before submitting them all.

parent 1b45caaf
No related branches found
No related tags found
No related merge requests found
...@@ -161,13 +161,14 @@ class Logger(object): ...@@ -161,13 +161,14 @@ class Logger(object):
regex = "^(%s)\s*([A-Z]+)\s*(.+?)\s*\:\:\s*(.*)$" % curError.time regex = "^(%s)\s*([A-Z]+)\s*(.+?)\s*\:\:\s*(.*)$" % curError.time
maxlines = 50
pastebin_url = None pastebin_url = None
for i, x in enumerate(reversed(log_data)): for i, x in enumerate(reversed(log_data)):
x = ek.ss(x) x = ek.ss(x)
match = re.match(regex, x) match = re.match(regex, x)
if match: if match:
level = match.group(2) level = match.group(2)
if reverseNames[level] >= ERROR: if reverseNames[level] == ERROR:
paste_data = "".join(log_data[len(log_data) - i - 50:]) paste_data = "".join(log_data[len(log_data) - i - 50:])
pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', paste_data) pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', paste_data)
break break
...@@ -192,10 +193,8 @@ class Logger(object): ...@@ -192,10 +193,8 @@ class Logger(object):
if not sickbeard.GIT_AUTOISSUES: if not sickbeard.GIT_AUTOISSUES:
ui.notifications.message('Your issue ticket #%s was submitted successfully!' % issue.number) ui.notifications.message('Your issue ticket #%s was submitted successfully!' % issue.number)
finally:
classes.ErrorViewer.clear() classes.ErrorViewer.clear()
except Exception as e:
pass
class Wrapper(object): class Wrapper(object):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment