We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d962bd commit 5217431Copy full SHA for 5217431
test/rest_common.py
@@ -644,7 +644,12 @@ def testRestRateLimit(self):
644
# retry loop. Not sure why but I can force it
645
# through the loop by setting the internal _db_type
646
# setting once the db is created by the previous command.
647
- self.db.Otk._db_type = whichdb("%s/%s"%(self.db.Otk.dir, self.db.Otk.name))
+ try:
648
+ self.db.Otk._db_type = whichdb("%s/%s"%(self.db.Otk.dir, self.db.Otk.name))
649
+ except AttributeError:
650
+ # if dir attribute doesn't exist the primary db is not
651
+ # sqlite or anydbm. So don't need to exercise code.
652
+ pass
653
654
print("Now realtime start:", datetime.utcnow())
655
# don't set an accept header; json should be the default
0 commit comments