Skip to content

Commit

Permalink
feat: fix ci version
Browse files Browse the repository at this point in the history
  • Loading branch information
hartym committed Mar 22, 2024
1 parent 43aafac commit 0509708
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harp_apps/proxy/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def __init__(self, url, *, http_client: AsyncClient, dispatcher=None, name=None)

# we only expose minimal information about the exact version
if not self.user_agent:
self.user_agent = f"harp/{__parsed_version__.major}.{__parsed_version__.minor}"
try:
self.user_agent = f"harp/{__parsed_version__.major}.{__parsed_version__.minor}"
except AttributeError:
self.user_agent = "harp"

async def adispatch(self, event_id, event=None):
"""
Expand Down

0 comments on commit 0509708

Please sign in to comment.