Skip to content

Commit

Permalink
[Mod] 优化版本号信息获取方式
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Dec 13, 2022
1 parent a401ded commit b38d1cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vnpy_rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@
import importlib_metadata


__version__ = importlib_metadata.version("vnpy_rest")
try:
__version__ = importlib_metadata.version("vnpy_rest")
except importlib_metadata.PackageNotFoundError:
__version__ = "dev"

0 comments on commit b38d1cc

Please sign in to comment.