diff --git a/mediagoblin/media_types/__init__.py b/mediagoblin/media_types/__init__.py
index 3eeead8..3d2c8fb 100644
a
|
b
|
def get_media_type_and_manager(filename):
|
84 | 84 | |
85 | 85 | This hook is deprecated, 'type_match_handler' should be used instead |
86 | 86 | ''' |
87 | | if filename.find('.') > 0: |
| 87 | if filename.find('.') >= 0: |
88 | 88 | # Get the file extension |
89 | 89 | ext = os.path.splitext(filename)[1].lower() |
90 | 90 | |
… |
… |
def type_match_handler(media_file, filename):
|
106 | 106 | specifically. After that, if media type is one of supported ones, check the |
107 | 107 | contents of the file |
108 | 108 | ''' |
109 | | if filename.find('.') > 0: |
| 109 | if filename.find('.') >= 0: |
110 | 110 | # Get the file extension |
111 | 111 | ext = os.path.splitext(filename)[1].lower() |