[modules/arch-update] log exceptions

This commit is contained in:
tobi-wan-kenobi 2020-05-08 16:09:10 +02:00
parent fde51b3f79
commit e4f7019f5b
2 changed files with 5 additions and 2 deletions

View file

@ -21,5 +21,4 @@
# documentation
Add info about error widget and events for error logging
- generate rst instead of markdown (list of modules)
- add module contributor doc

View file

@ -4,6 +4,9 @@ Requires the following executable:
* checkupdates (from pacman-contrib)
"""
import logging
import core.module
import core.widget
import core.decorators
@ -31,7 +34,8 @@ class Module(core.module.Module):
try:
result = util.cli.execute("checkupdates")
self.__packages = len(result.split("\n")) - 1
except:
except as e:
logging.exception(e)
self.__packages = -1
def state(self, widget):