Fix regression with application mimetypes

pull/21/head
Dan Puttick 2017-07-27 11:30:26 -04:00
parent 51bfaa1ff5
commit 37fc204b18
1 changed files with 5 additions and 5 deletions

View File

@ -246,11 +246,11 @@ class File(FileBase):
def application(self):
"""Process an application specific file according to its subtype."""
if self.subtype in self.app_subtype_methods:
method = self.app_subtype_methods[self.subtype]
for subtype, method in self.app_subtype_methods.items():
if subtype in self.subtype: # checking for partial matches
method()
else:
self._unknown_app()
return
self._unknown_app() # if none of the methods match
def _executables(self):
"""Process an executable file."""