From a1d7062b1f8fb162ac759f044b958f24cea0059e Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 15 May 2016 13:22:06 -0700 Subject: [PATCH] Update changelog reader for second level indents --- plexpy/versioncheck.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plexpy/versioncheck.py b/plexpy/versioncheck.py index a2106c4c..30130b96 100644 --- a/plexpy/versioncheck.py +++ b/plexpy/versioncheck.py @@ -252,7 +252,7 @@ def read_changelog(): try: logfile = open(changelog_file, "r") - except IOError, e: + except IOError as e: logger.error('PlexPy Version Checker :: Unable to open changelog file. %s' % e) return '

Unable to open changelog file

' @@ -267,9 +267,15 @@ def read_changelog(): output += '

' + line[3:] + '

' elif line[:2] == '* ' and previous_line.strip() == '': output += '
  • ' + line[2:] + '
  • ' elif line[:2] == '* ': output += '
  • ' + line[2:] + '
  • ' - elif line.strip() == '' and previous_line[:2] == '* ': + elif line[:4] == ' * ' and previous_line[:2] == '* ': + output += '
    ' else: output += line + '
    '