Merge pull request #873 from alexcoder04/main

arch-update: sleep 1 sec before checking
This commit is contained in:
tobi-wan-kenobi 2022-05-01 12:50:52 +02:00 committed by GitHub
commit b7dd47c834
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ contributed by `lucassouto <https://github.com/lucassouto>`_ - many thanks!
""" """
import logging import logging
from time import sleep
import core.module import core.module
import core.widget import core.widget
@ -35,6 +36,7 @@ class Module(core.module.Module):
def update(self): def update(self):
self.__error = False self.__error = False
sleep(1)
code, result = util.cli.execute( code, result = util.cli.execute(
"checkupdates", ignore_errors=True, return_exitcode=True "checkupdates", ignore_errors=True, return_exitcode=True
) )