Skip to content

Commit

Permalink
fix thumb unref error #91 1
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-dk committed Aug 16, 2021
1 parent 19afbbe commit afda35a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tortoolkit/uploaders/telegram_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,8 @@ async def upload_single_file(self, path, message):
sent_message = None
start_time = time.time()
#
thumb_image_path = None

if self._user_message is not None:
dis_thumb = self._user_db.get_variable("DISABLE_THUMBNAIL", self._user_message.sender_id)
if dis_thumb is False or dis_thumb is None:
Expand Down

0 comments on commit afda35a

Please sign in to comment.