recs = biaweb_db.get_categories (self.current_db)
# check with False because None is returned when no records exist
- if recs == False:
+ if recs is False:
PyQt4.QtGui.QMessageBox.critical (self, "Error", "SQLite 3 error in getting the categories")
return False
recs = biaweb_db.get_articles (self.current_db, catid)
# check with False because None is returned when no records exist
- if recs == False:
+ if recs is False:
PyQt4.QtGui.QMessageBox.critical (self, "Error", "SQLite 3 error in getting the articles")
return False
loaded_arts = self.repopulate_articles ()
# if failed in loading either categories or articles (note: checking against
# False and not None)
- if loaded_cats == False or loaded_arts == False:
+ if loaded_cats is False or loaded_arts is False:
self.current_db = None
PyQt4.QtGui.QMessageBox.critical (self, "Error",
"SQLite 3 error in loading site database. This appears to be an invalid BiaWeb database")