from bugzilla import Bugzilla
import logging
from budget_sync.util import all_bugs
-from budget_sync.budget_graph import BudgetGraph
+from budget_sync.budget_graph import BudgetGraph, BudgetGraphBaseError
BUGZILLA_URL = "https://bugs.libre-soc.org"
logging.info("Using Bugzilla instance at %s", BUGZILLA_URL)
bz = Bugzilla(BUGZILLA_URL)
logging.debug("Connected to Bugzilla")
- print(bz.getbug(269).__dict__)
- print(bz.getbug(1).__dict__)
- return
budget_graph = BudgetGraph(all_bugs(bz))
- print(budget_graph)
+ for error in budget_graph.get_errors():
+ logging.error("%s", error)
if __name__ == "__main__":