mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
catch platform io error
This commit is contained in:
parent
c5297afad4
commit
5d0ab749cb
1 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,13 @@ class LatestVersionFinder(QThread):
|
|||
self.main = main
|
||||
self.config = main.pm.meta
|
||||
plat=sys.platform
|
||||
while 1:
|
||||
try:
|
||||
pver=platform.platform()
|
||||
break
|
||||
except IOError:
|
||||
# interrupted system call
|
||||
continue
|
||||
d = {"ver": aqt.appVersion,
|
||||
"pver": pver,
|
||||
"plat": plat,
|
||||
|
|
Loading…
Reference in a new issue