diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-11-29 21:01:05 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-11-29 21:01:05 +0300 |
commit | d1c8741c14c1aece65aa304dba95ee43682eedf1 (patch) | |
tree | c3617f67c695a89f634c3b8473ee0bd6816122a0 /vk | |
parent | update requirements.txt (diff) | |
download | vk-scripts-d1c8741c14c1aece65aa304dba95ee43682eedf1.tar.gz vk-scripts-d1c8741c14c1aece65aa304dba95ee43682eedf1.zip |
fix 3.8+ errors
Diffstat (limited to 'vk')
-rw-r--r-- | vk/last_seen.py | 2 |
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) |