From e65ec1f93e5574b2a06ee1e9c415a05361bc2f03 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 3 May 2024 15:42:18 -0400 Subject: [PATCH] fix requirements error --- kometa.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kometa.py b/kometa.py index 57cf6d2b..aa04ee64 100644 --- a/kometa.py +++ b/kometa.py @@ -9,7 +9,7 @@ if sys.version_info[0] != 3 or sys.version_info[1] < 8: sys.exit(0) try: - import arrapi, git, lxml, pathvalidate, PIL, plexapi, psutil, dateutil, requests, ruamel.yaml, schedule, setuptools, tmdbapis + import arrapi, lxml, pathvalidate, PIL, plexapi, psutil, dateutil, requests, ruamel.yaml, schedule, setuptools, tmdbapis from dotenv import load_dotenv, version as dotenv_version from PIL import ImageFile from plexapi import server @@ -21,7 +21,6 @@ except (ModuleNotFoundError, ImportError) as ie: system_versions = { "arrapi": arrapi.__version__, - "GitPython": git.__version__, "lxml": lxml.__version__, "pathvalidate": pathvalidate.__version__, "pillow": PIL.__version__, @@ -168,6 +167,8 @@ for _, sv in secret_args.items(): run_arg = run_arg.replace(sv, "(redacted)") try: + import git # noqa + system_versions["GitPython"] = git.__version__ from git import Repo, InvalidGitRepositoryError # noqa try: git_branch = Repo(path=".").head.ref.name # noqa