Skip to content

Commit

Permalink
stop on invalid mime-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Intrinsica1 committed Jun 29, 2024
1 parent d2f7241 commit 8e6ce95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/unembed_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def findFile(parent_path, data, mime): # returns: Path or None upon none found
glob = "*[{}]".format("][".join(extensions))
else:
logging.warning("invalid mime-type")
return None # TODO: remove when `TODO: force only match files (not including directories)' is done
glob = "*"

logging.info("walking `{}' with glob: `{}'".format(parent_path, glob))
Expand Down

0 comments on commit 8e6ce95

Please sign in to comment.