Browse Source

Change a check in toots list type

Now toots list can actually be AttribAccessList types. So we just check
if the type of the objects inherits from list.
Lertsenem 1 year ago
parent
commit
b64bcec17a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -463,7 +463,7 @@ class TootQueue:
463 463
         return str(self._queue)
464 464
 
465 465
     def insert(self, toots):
466
-        if(type(toots) == list):
466
+        if(issubclass(type(toots), list)):
467 467
             rv = False
468 468
             for t in toots:
469 469
                 rv2 = self.insert(t)