Minor code cleanup

This commit is contained in:
Anon 2022-12-18 19:00:11 -08:00
parent 6980581c13
commit 8de4584132

View File

@ -144,9 +144,8 @@ class YandereBot:
backend_s = picked_profile["backend"] backend_s = picked_profile["backend"]
backend_credentials = self.settings_backend[backend_s] backend_credentials = self.settings_backend[backend_s]
backend = importlib.import_module(backend_credentials["module"]) backend = importlib.import_module(backend_credentials["module"])
img = None
downloader = backend.downloader(backend_credentials)
downloader = backend.downloader(backend_credentials)
img = downloader.fetch_post(picked_profile) img = downloader.fetch_post(picked_profile)
if img is None: if img is None: