2012-12-22, 21:28
This script appears to crash when there is no network, or when network is changing.
Doesn't check the json result actually exists, looks like, and that causes the script to fail.
This happens to me when I try to update the MTU of my adapter at startup through
If I put it on delayed execution mostly it goes fine. Still, it would be nice if the script was resilient.
Cheers
Code:
if json_query['result'].has_key('movies'):
Doesn't check the json result actually exists, looks like, and that causes the script to fail.
This happens to me when I try to update the MTU of my adapter at startup through
Code:
ip link set mtu 9194 dev eth0
If I put it on delayed execution mostly it goes fine. Still, it would be nice if the script was resilient.
Cheers