ruff: Fix B018 Found useless expression.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
03d132e99e
commit
d546a39731
1 changed files with 2 additions and 6 deletions
|
@ -20,12 +20,8 @@ try:
|
||||||
|
|
||||||
setup_path()
|
setup_path()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
with contextlib.suppress(ImportError):
|
||||||
import scripts.lib.setup_path_on_import
|
import scripts.lib.setup_path_on_import # noqa: F401
|
||||||
|
|
||||||
scripts.lib.setup_path_on_import # Suppress unused import warning
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../"))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue