Skip to content

Commit

Permalink
Merge branch 'hotfix/ticket-fail-fetch-on-mempool'
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigondec committed Mar 6, 2020
2 parents 0ef07ab + 377b936 commit 0c9e9a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MODE=cmd
SERVER_URL=https://mybot.com
PORT=8443

JACK_CHAT_ID=@ticketspliting
JACK_CHAT_ID=@ticketsplitting

MONGO_INITDB_ROOT_USERNAME=mongo
MONGO_INITDB_ROOT_PASSWORD=mongo
Expand Down
4 changes: 1 addition & 3 deletions db/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,8 @@ def fetch(self):
try:
data = request_dcr_data(f"tx/{self.tx_id}/tinfo")
except DcrDataAPIError as e:
self.delete()
self.observer.send_message(e)
self.observer.send_message(TX_ID_ERROR)
self.observer.send_message(f"Your ticket was removed!")
self.observer.send_message(f"Your ticket was not saved!")
return False

status = data.get('status')
Expand Down

0 comments on commit 0c9e9a6

Please sign in to comment.