From d1c8741c14c1aece65aa304dba95ee43682eedf1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 29 Nov 2020 21:01:05 +0300 Subject: fix 3.8+ errors --- vk/last_seen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vk/last_seen.py b/vk/last_seen.py index cf76db5..2bd48dc 100644 --- a/vk/last_seen.py +++ b/vk/last_seen.py @@ -23,7 +23,7 @@ def _parse_time(x): def _parse_platform(x): - if x in Platform: + if isinstance(x, Platform): return x if isinstance(x, str): return Platform.from_string(x) -- cgit v1.2.3