diff --git a/bumblebee/modules/dnf.py b/bumblebee/modules/dnf.py index bc40e94..65bcc6b 100644 --- a/bumblebee/modules/dnf.py +++ b/bumblebee/modules/dnf.py @@ -26,17 +26,17 @@ def get_dnf_info(obj): main = thread while main.is_alive(): - try: - res = subprocess.check_output(shlex.split("dnf updateinfo")) - except Exception as e: - break - loops += 1 time.sleep(1) if loops < obj.interval(): continue loops = 0 + try: + res = subprocess.check_output(shlex.split("dnf updateinfo")) + except Exception as e: + break + security = 0 bugfixes = 0