From fbd12bf87b81826bc2944209c685be785f793f28 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 20 Oct 2019 18:11:18 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/plugins/default/auto-update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 153cbeb..e65e511 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -55,6 +55,8 @@ def check(version, repo, native=True): def on_internet_available(agent): global STATUS + logging.debug("[update] internet connectivity is available (ready %s)" % READY) + if READY: if STATUS.newer_then_hours(OPTIONS['interval']): logging.debug("[update] last check happened less than %d hours ago" % OPTIONS['interval'])