mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-28 05:10:40 -07:00
Improved robustness
This commit is contained in:
parent
97e00780bc
commit
fd00109ca4
@ -63,7 +63,7 @@ class MaianaClient:
|
||||
systokens = re.split(',|\\*', sysline.decode('utf-8'))
|
||||
sysd = {'fw': systokens[2], 'hw': systokens[1], 'cpu': systokens[4]}
|
||||
return sysd
|
||||
finally:
|
||||
except:
|
||||
pass
|
||||
|
||||
return {}
|
||||
@ -82,7 +82,7 @@ class MaianaClient:
|
||||
'portoffset': int(stationtokens[7]), 'bowoffset': int(stationtokens[8])}
|
||||
|
||||
return stad
|
||||
finally:
|
||||
except:
|
||||
pass
|
||||
return {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user