Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
google_drive: fix derp HttpError is not iterable
Browse files Browse the repository at this point in the history
Change-Id: I7962f011f8f81f4664818e065924096d7953c031
  • Loading branch information
adekmaulana committed Jul 8, 2020
1 parent 93415ea commit 27bac80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userbot/modules/google_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ async def change_permission(service, Id):
service.permissions().create(fileId=Id, body=permission).execute()
except HttpError as e:
""" it's not possible to change permission per file for teamdrive """
if '"File not found: {Id}."' in e or (
if f'"File not found: {Id}."' in str(e) or (
'"Sharing folders that are inside a shared drive is not supported."'
in e):
in str(e)):
return
return

Expand Down

0 comments on commit 27bac80

Please sign in to comment.