From 6b501914203c32bd3b7754ac4f96fea6f1a29e99 Mon Sep 17 00:00:00 2001 From: Yuxin Wu Date: Fri, 27 Nov 2020 15:34:30 -0800 Subject: [PATCH] uin int to str --- decrypt-db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decrypt-db.py b/decrypt-db.py index 39e63d5..2994f70 100755 --- a/decrypt-db.py +++ b/decrypt-db.py @@ -77,7 +77,8 @@ def get_uin(): candidates.append(uin) logger.info(f"found uin={uin} in systemInfo.cfg") - candidates = list({str(x) for x in candidates if x != 0}) + candidates = list({str(x) if isinstance(x, int) else x + for x in candidates if x != 0}) logger.info(f"Possible uin: {candidates}") return candidates