From 751cf9de0d8bb727c44ecaf7950a3658b868399d Mon Sep 17 00:00:00 2001 From: Ziniu Yu Date: Tue, 31 May 2022 15:06:51 +0800 Subject: [PATCH] fix: does not require port (#735) --- .pre-commit-config.yaml | 2 +- client/clip_client/client.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11373745b..bac09cb0a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/ambv/black - rev: 20.8b1 + rev: 22.3.0 hooks: - id: black types: [python] diff --git a/client/clip_client/client.py b/client/clip_client/client.py index f64cd5c0b..9436f25d4 100644 --- a/client/clip_client/client.py +++ b/client/clip_client/client.py @@ -34,8 +34,6 @@ def __init__(self, server: str): r = urlparse(server) _port = r.port _scheme = r.scheme - if not _port: - raise if not _scheme: raise except: