Skip to content

Commit

Permalink
delegating feature - url hotfix (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbartn authored Apr 19, 2021
1 parent 9107000 commit a6edd32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/service/governance_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def terra_timestamp_to_datetime(timestamp: str) -> datetime:
return dateutil.parser.parse(timestamp)


def get_vote(wallet_addr, proposal_id) -> str:
response = requests.get(f'{LCD_ENDPOINT}/gov/proposals/{proposal_id}/votes/{wallet_addr}')
def get_vote(wallet_addr, proposal_id) -> [str, None]:
response = requests.get(f'{LCD_ENDPOINT}gov/proposals/{proposal_id}/votes/{wallet_addr}')

if not response.ok:
return None
Expand Down

0 comments on commit a6edd32

Please sign in to comment.