Skip to content

Commit

Permalink
protect version import
Browse files Browse the repository at this point in the history
  • Loading branch information
David Erb committed Jun 21, 2023
1 parent 744a6c4 commit 120b06f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dls_servbase_lib/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ def meta(given_meta: Optional[dict] = None) -> dict:
except Exception:
meta["setproctitle"] = "unavailable"

try:
import aiohttp

aiohttp.__version__
meta["aiohttp"] = aiohttp.__version__
except Exception:
meta["aiohttp"] = "unavailable"

if given_meta is not None:
given_meta.update(meta)
else:
Expand Down

0 comments on commit 120b06f

Please sign in to comment.