diff --git a/setup/hosting.py b/setup/hosting.py index a1e209a5a6..4e8851ebec 100644 --- a/setup/hosting.py +++ b/setup/hosting.py @@ -196,7 +196,7 @@ class GitHub(Base): # {{{ ) def do_upload(self, url, path, desc, fname): - mime_type = mimetypes.guess_type(fname)[0] + mime_type = mimetypes.guess_type(fname)[0] or 'application/octet-stream' self.info('Uploading to GitHub: %s (%s)' % (fname, mime_type)) with ReadFileWithProgressReporting(path) as f: return self.requests.post(