diff --git a/.env.example b/.env.example index c481416..ba1a212 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/db/ticket.py b/db/ticket.py index 16758a7..01f6295 100644 --- a/db/ticket.py +++ b/db/ticket.py @@ -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')