Skip to content

Commit

Permalink
Corrige a obtenção de mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
robertatakenaka committed Oct 25, 2021
1 parent cde9d00 commit b6a9964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsm/extdeps/minio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import json
import hashlib
from mimetypes import read_mime_types, guess_type
from mimetypes import guess_type

from minio import Minio
from minio.error import S3Error
Expand All @@ -14,7 +14,7 @@


def get_mimetype(file_path):
return read_mime_types(file_path) or guess_type(file_path)
return guess_type(file_path)[0]


class SHA1Error(Exception):
Expand Down

0 comments on commit b6a9964

Please sign in to comment.