aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-11-29 21:01:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-11-29 21:01:05 +0300
commitd1c8741c14c1aece65aa304dba95ee43682eedf1 (patch)
treec3617f67c695a89f634c3b8473ee0bd6816122a0
parentupdate requirements.txt (diff)
downloadvk-scripts-d1c8741c14c1aece65aa304dba95ee43682eedf1.tar.gz
vk-scripts-d1c8741c14c1aece65aa304dba95ee43682eedf1.zip
fix 3.8+ errors
-rw-r--r--vk/last_seen.py2
1 files changed, 1 insertions, 1 deletions
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)