OpenWrt keeps its package index in RAM and loses it on every reboot. get_available_updates() raises then, but only as a bare RuntimeError, so netOrk cannot tell it from a failed read and shows a device communication error.
PackageIndexMissing (a RuntimeError, so existing callers still catch it) in updates.py, exported from the package.
The contract of get_available_updates() names it; refresh_available_updates() cures it.
For NetOrk/netork#2527. napalm-openwrt raises it next; a 4.39.0 release follows.
OpenWrt keeps its package index in RAM and loses it on every reboot. `get_available_updates()` raises then, but only as a bare `RuntimeError`, so netOrk cannot tell it from a failed read and shows a device communication error.
- `PackageIndexMissing` (a `RuntimeError`, so existing callers still catch it) in `updates.py`, exported from the package.
- The contract of `get_available_updates()` names it; `refresh_available_updates()` cures it.
For NetOrk/netork#2527. napalm-openwrt raises it next; a 4.39.0 release follows.
OpenWrt keeps its package index in RAM and loses it on every reboot.
get_available_updates() raises then, rightly, but only as a bare
RuntimeError, so a caller cannot tell it from a read that failed and
reports a communication error for a state a refresh cures.
PackageIndexMissing (a RuntimeError, so existing callers still catch it)
names that case; refresh_available_updates() is the way out.
Refs NetOrk/netork#2527
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
OpenWrt keeps its package index in RAM and loses it on every reboot.
get_available_updates()raises then, but only as a bareRuntimeError, so netOrk cannot tell it from a failed read and shows a device communication error.PackageIndexMissing(aRuntimeError, so existing callers still catch it) inupdates.py, exported from the package.get_available_updates()names it;refresh_available_updates()cures it.For NetOrk/netork#2527. napalm-openwrt raises it next; a 4.39.0 release follows.