File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 66import time
77import httpx
88from urllib .parse import urljoin , urlencode
9- from importlib .metadata import version
9+ from importlib .metadata import PackageNotFoundError , version
1010
1111from pydantic import ValidationError
1212
13- from vaas .messages .problem_details import ProblemDetails
13+ from .messages .problem_details import ProblemDetails
1414
1515from .async_file_reader import AsyncFileReader
1616from .authentication .authenticator_interface import AuthenticatorInterface
3232TIMEOUT = 60
3333HTTP2 = False
3434UPLOAD_TIMEOUT = 600
35- USER_AGENT = f"Python/{ version ("gdata-vaas" )} "
35+ try :
36+ VERSION = version ("gdata-vaas" )
37+ except PackageNotFoundError :
38+ VERSION = "0.0.0"
39+ USER_AGENT = f"Python/{ VERSION } "
3640
3741
3842class VaasTracing :
You can’t perform that action at this time.
0 commit comments