diff --git a/afile b/afile new file mode 100644 index 0000000..e69de29 diff --git a/src/dask_histogram/core.py b/src/dask_histogram/core.py index 4f3cec7..b80943d 100644 --- a/src/dask_histogram/core.py +++ b/src/dask_histogram/core.py @@ -524,10 +524,12 @@ def _get_optimization_function(): # running this optimization even in cases where it's unncessary # because if no AwkwardInputLayers from dask-awkward are # detected then the original graph is returned unchanged. - if dask.config.get("awkward", default=False): + try: from dask_awkward.lib.optimize import all_optimizations return all_optimizations + except (ImportError, ModuleNotFoundError): + pass return optimize