From b38d1cc11fff94a64ca240c7ce1b3f954bcb4147 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 13 Dec 2022 16:17:46 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E4=BC=98=E5=8C=96=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy_rest/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vnpy_rest/__init__.py b/vnpy_rest/__init__.py index e6b06cb..c689529 100644 --- a/vnpy_rest/__init__.py +++ b/vnpy_rest/__init__.py @@ -25,4 +25,7 @@ import importlib_metadata -__version__ = importlib_metadata.version("vnpy_rest") \ No newline at end of file +try: + __version__ = importlib_metadata.version("vnpy_rest") +except importlib_metadata.PackageNotFoundError: + __version__ = "dev"