Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertEinsteinTG authored Apr 14, 2021
1 parent aea332f commit 8991aa6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bot/plugins/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def connect(bot: Bot, update):
try:
type_list = ["video", "audio", "document"]
data = []

skipCT = 0

for typ in type_list:

Expand Down Expand Up @@ -125,9 +125,11 @@ async def connect(bot: Bot, update):
data.append(dicted)
except Exception as e:
if 'NoneType' in str(e): # For Some Unknown Reason Some File Name is 'None'
skipCT +=1
continue
print(e)


print(f"{skiptc} Files Been Skipped Due To File Name Been None..... #BlameTG")
except Exception as e:
await wait_msg.edit_text("Couldnt Fetch Files From Channel... Please look Into Logs For More Details")
raise e
Expand Down

0 comments on commit 8991aa6

Please sign in to comment.