Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjustment to support file-magic (Possibly Fixes #3292)
  • Loading branch information
przerull authored and strycore committed Nov 27, 2020
1 parent 5f085d7 commit 116dac7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lutris/util/game_finder.py
Expand Up @@ -13,8 +13,12 @@


if not hasattr(magic, "from_file"):
logger.error("Your version of python-magic is too old.")
MAGIC_AVAILABLE = False
if hasattr(magic, "detect_from_filename"):
magic.from_file = magic.detect_from_filename
MAGIC_AVAILABLE = True
else:
logger.error("Your version of python-magic is too old.")
MAGIC_AVAILABLE = False


def is_excluded_elf(filename):
Expand Down

0 comments on commit 116dac7

Please sign in to comment.