diff options
Diffstat (limited to 'MAT')
| -rw-r--r-- | MAT/mat.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -144,7 +144,8 @@ def create_class_file(name, backup, **kwargs): | |||
| 144 | mime = parser.mime_type | 144 | mime = parser.mime_type |
| 145 | 145 | ||
| 146 | if mime == 'application/zip': # some formats are zipped stuff | 146 | if mime == 'application/zip': # some formats are zipped stuff |
| 147 | mime = mimetypes.guess_type(name)[0] | 147 | if mimetypes.guess_type(name)[0] is not None: |
| 148 | mime = mimetypes.guess_type(name)[0] | ||
| 148 | 149 | ||
| 149 | if mime.startswith('application/vnd.oasis.opendocument'): | 150 | if mime.startswith('application/vnd.oasis.opendocument'): |
| 150 | mime = 'application/opendocument' # opendocument fileformat | 151 | mime = 'application/opendocument' # opendocument fileformat |
