diff --git a/lib/galaxy/datatypes/sniff.py b/lib/galaxy/datatypes/sniff.py index 12a6550bdf6d..0affcde217da 100644 --- a/lib/galaxy/datatypes/sniff.py +++ b/lib/galaxy/datatypes/sniff.py @@ -37,7 +37,11 @@ ) from galaxy.util.path import StrPath -import pylibmagic # noqa: F401 # isort:skip +try: + import pylibmagic # noqa: F401 # isort:skip +except ImportError: + # Not available in conda, but docker image contains libmagic + pass import magic # isort:skip