Private GIT

Skip to content
Snippets Groups Projects
Commit 4fac9d21 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Fix max title length for issues

parent 2d8a4643
No related branches found
No related tags found
No related merge requests found
......@@ -192,8 +192,11 @@ class Logger(object):
title_Error = str(curError.title)
if not len(title_Error) or title_Error == 'None':
title_Error = re.match("^[A-Z0-9\-\[\] :]+::\s*(.*)$", ek.ss(str(curError.message))).group(1)
if len(title_Error.encode('utf-8')) > 1024:
title_Error = title_Error[0:1024]
# if len(title_Error) > (1024 - len(u"[APP SUBMITTED]: ")):
# 1000 just looks better than 1007 and adds some buffer
if len(title_Error) > 1000:
title_Error = title_Error[0:1000]
except Exception as e:
self.log("Unable to get error title : " + sickbeard.exceptions.ex(e), ERROR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment