Skip to content

Commit 06ed50a

Browse files
unify conditions to prevent failure
1 parent ef5fdd8 commit 06ed50a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

gspread/client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,7 @@ def copy(
327327

328328
permissions = original.list_permissions()
329329
for p in permissions:
330-
if p.get("deleted"):
331-
continue
332-
333-
if p.get("role") == "owner":
330+
if p.get("deleted") or p.get("role") == "owner":
334331
continue
335332

336333
# In case of domain type the domain extract the domain

0 commit comments

Comments
 (0)