BUILDBOT: Fix deprecations

This commit is contained in:
Le Philousophe
2024-12-25 12:22:55 +00:00
parent ab56105b6b
commit 4f3d7bf6ad
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -151,8 +151,8 @@ class DiscordStatusPush(ReporterBase):
yield super().reconfigService(generators=generators, **kwargs)
self._http = yield httpclientservice.HTTPClientService.getService(
self.master, webhook_url,
self._http = yield httpclientservice.HTTPSession(
self.master.httpservice, webhook_url,
debug=debug, verify=verify)
def _create_default_generators(self):
@@ -49,7 +49,10 @@ def get_application(
daily_builds_dir, daily_builds_url, helpers,
builds, platforms)
app = ConfiguredBottle(catchall=False, autojson=False)
app = ConfiguredBottle()
app.catchall = False
# There seems to be no other way to disable autojson on Bottle v0.13
app.uninstall(bottle.JSONPlugin)
app.helpers = helpers
app.packaged_builds = packaged_builds