mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
fix requirements error
This commit is contained in:
parent
aa5aa85472
commit
e65ec1f93e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue