1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-28 05:10:40 -07:00

Improved robustness

This commit is contained in:
Peter Antypas 2022-01-30 09:50:39 -08:00
parent 97e00780bc
commit fd00109ca4

View File

@ -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 {}