diff --git a/pywxdump/db/dbMicro.py b/pywxdump/db/dbMicro.py index a8aacb3..56cb034 100644 --- a/pywxdump/db/dbMicro.py +++ b/pywxdump/db/dbMicro.py @@ -59,7 +59,7 @@ class MicroHandler(DatabaseBase): :param id_is_key: id_is_key: True: id作为key,False: name作为key :return: """ - if (self.table_exist.get("ContactLabel") is None) or (not self.table_exist.get("ContactLabel")): + if not self.table_exist.get("ContactLabel", False): return [] sql = "SELECT LabelId, LabelName FROM ContactLabel ORDER BY LabelName ASC;" result = self.execute(sql)