mirror of
https://github.com/peterantypas/maiana.git
synced 2025-06-01 07:10:33 -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'))
|
systokens = re.split(',|\\*', sysline.decode('utf-8'))
|
||||||
sysd = {'fw': systokens[2], 'hw': systokens[1], 'cpu': systokens[4]}
|
sysd = {'fw': systokens[2], 'hw': systokens[1], 'cpu': systokens[4]}
|
||||||
return sysd
|
return sysd
|
||||||
finally:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
@ -82,7 +82,7 @@ class MaianaClient:
|
|||||||
'portoffset': int(stationtokens[7]), 'bowoffset': int(stationtokens[8])}
|
'portoffset': int(stationtokens[7]), 'bowoffset': int(stationtokens[8])}
|
||||||
|
|
||||||
return stad
|
return stad
|
||||||
finally:
|
except:
|
||||||
pass
|
pass
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user