Permalink
Browse files

Fix ValueError when magic module is not present

  • Loading branch information...
1 parent 69bee45 commit a7d27564a2490be2f51af1e98a81a97ad10f6110 @ksperling ksperling committed Jun 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 S3/S3.py
View
@@ -65,7 +65,7 @@ def mime_magic(file):
if (not magic_warned):
warning(magic_message)
magic_warned = True
- return mimetypes.guess_type(file)[0]
+ return mimetypes.guess_type(file)
__all__ = []
class S3Request(object):

0 comments on commit a7d2756

Please sign in to comment.