From b6090bafd35c441e68207d703f79b85720831bb9 Mon Sep 17 00:00:00 2001 From: Dmitry Ustalov Date: Thu, 10 Oct 2024 13:34:49 +0200 Subject: [PATCH] Fix lint errors --- python/evalica/gradio/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/evalica/gradio/__main__.py b/python/evalica/gradio/__main__.py index a0eecfe..cd366ea 100755 --- a/python/evalica/gradio/__main__.py +++ b/python/evalica/gradio/__main__.py @@ -30,8 +30,8 @@ import sys from pathlib import Path - if (pydub_spec := importlib.util.find_spec("pydub")) is not None: - if (pydub_origin := pydub_spec.origin) is not None: + if (pydub_spec := importlib.util.find_spec("pydub")) is not None \ + and (pydub_origin := pydub_spec.origin) is not None: sys.path.append(str(Path(pydub_origin).parent)) import gradio as gr