Private GIT

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

Merge branch 'issue-title-length' into develop

parents 2d8a4643 4fac9d21
Branches
Tags
No related merge requests found
...@@ -192,8 +192,11 @@ class Logger(object): ...@@ -192,8 +192,11 @@ class Logger(object):
title_Error = str(curError.title) title_Error = str(curError.title)
if not len(title_Error) or title_Error == 'None': if not len(title_Error) or title_Error == 'None':
title_Error = re.match("^[A-Z0-9\-\[\] :]+::\s*(.*)$", ek.ss(str(curError.message))).group(1) 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: except Exception as e:
self.log("Unable to get error title : " + sickbeard.exceptions.ex(e), ERROR) 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