From 2a0e07aca518dcb97cbcbb5ee96076befeadf923 Mon Sep 17 00:00:00 2001 From: James Tufarelli Date: Thu, 22 Dec 2022 17:28:09 -0800 Subject: [PATCH] Fix update check failing when `git` is not found (#1943) * Update versioncheck to cast commit_hash to string After the most recent v2.11.0 update, Tautulli would not start until I made this change to the codebase. * Update plexpy/versioncheck.py Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> --- plexpy/versioncheck.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/versioncheck.py b/plexpy/versioncheck.py index 33f2b917..2f07d7ae 100644 --- a/plexpy/versioncheck.py +++ b/plexpy/versioncheck.py @@ -101,9 +101,9 @@ def get_version(): else: cur_commit_hash = str(output) - if not re.match('^[a-z0-9]+$', cur_commit_hash): - logger.error('Output does not look like a hash, not using it.') - cur_commit_hash = None + if not re.match('^[a-z0-9]+$', cur_commit_hash): + logger.error('Output does not look like a hash, not using it.') + cur_commit_hash = None if plexpy.CONFIG.DO_NOT_OVERRIDE_GIT_BRANCH and plexpy.CONFIG.GIT_BRANCH: remote_name = None