Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed another Python 2.3 bug (this one on django.http.parse_file_uplo…

…ad). I think there's one left.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cb1ff2af35bd983dadabfbfbc882c326bd22bab5 1 parent 2cd6db6
Jacob Kaplan-Moss authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/http/__init__.py
2  django/http/__init__.py
@@ -52,7 +52,7 @@ def parse_file_upload(header_dict, post_data):
52 52
     POST = MultiValueDict()
53 53
     FILES = MultiValueDict()
54 54
     for submessage in msg.get_payload():
55  
-        if isinstance(submessage, email.Message.Message):
  55
+        if submessage and isinstance(submessage, email.Message.Message):
56 56
             name_dict = parse_header(submessage['Content-Disposition'])[1]
57 57
             # name_dict is something like {'name': 'file', 'filename': 'test.txt'} for file uploads
58 58
             # or {'name': 'blah'} for POST fields

0 notes on commit cb1ff2a

Please sign in to comment.
Something went wrong with that request. Please try again.