diff --git a/bbot/core/helpers/web/engine.py b/bbot/core/helpers/web/engine.py index cb90b10676..b349d11fa6 100644 --- a/bbot/core/helpers/web/engine.py +++ b/bbot/core/helpers/web/engine.py @@ -83,8 +83,7 @@ async def request(self, *args, **kwargs): async with self._acatch(url, raise_error): if self.http_debug: - logstr = f"Web request: {str(args)}, {str(kwargs)}" - log.trace(logstr) + log.trace(f"Web request: {str(args)}, {str(kwargs)}") response = await client.request(*args, **kwargs) if self.http_debug: log.trace( diff --git a/bbot/modules/unstructured.py b/bbot/modules/unstructured.py index 83b3552c94..6f5663a4df 100644 --- a/bbot/modules/unstructured.py +++ b/bbot/modules/unstructured.py @@ -67,7 +67,7 @@ class unstructured(BaseModule): } deps_apt = ["libmagic-dev", "poppler-utils", "tesseract-ocr", "libreoffice", "pandoc"] - deps_pip = ["unstructured[all-docs]>=0.5.15,<1.0"] + deps_pip = ["unstructured[all-docs]>=0.15.6,<1.0"] scope_distance_modifier = 1 diff --git a/bbot/scanner/preset/environ.py b/bbot/scanner/preset/environ.py index c4c2b8f5b7..f14b0c0fb6 100644 --- a/bbot/scanner/preset/environ.py +++ b/bbot/scanner/preset/environ.py @@ -42,7 +42,7 @@ def add_to_path(v, k="PATH", environ=None): if _ != v and _ not in deduped_var_list: deduped_var_list.append(_) deduped_var_list = [v] + deduped_var_list - new_var_str = ":".join(deduped_var_list) + new_var_str = ":".join(deduped_var_list).strip(":") environ[k] = new_var_str