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()
|
||||
except ImportError:
|
||||
try:
|
||||
import scripts.lib.setup_path_on_import
|
||||
|
||||
scripts.lib.setup_path_on_import # Suppress unused import warning
|
||||
except ImportError:
|
||||
pass
|
||||
with contextlib.suppress(ImportError):
|
||||
import scripts.lib.setup_path_on_import # noqa: F401
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../"))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue