Skip to content

Commit

Permalink
Merge pull request #18813 from mvdbeek/make_pylibmagic_import_optional
Browse files Browse the repository at this point in the history
[24.1] Make pylibmagic import optional
  • Loading branch information
martenson committed Sep 16, 2024
2 parents f1b86ee + b6d0d51 commit ca33e23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/galaxy/datatypes/sniff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit ca33e23

Please sign in to comment.