diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-02-26 20:17:26 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-02-26 20:17:26 +0000 |
| commit | 6df023007781e96fa1cfa8dfce0040cc9d7da871 (patch) | |
| tree | a314d41c8e3a32fa030f1e7e63efb437579cf07f /django/http | |
| parent | a9fafd521f13c62eec78c27414262deda62993d3 (diff) | |
newforms-admin: Merged to [4616]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/http')
| -rw-r--r-- | django/http/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py index a6538b7d4a..0ae90c4921 100644 --- a/django/http/__init__.py +++ b/django/http/__init__.py @@ -52,7 +52,7 @@ def parse_file_upload(header_dict, post_data): POST = MultiValueDict() FILES = MultiValueDict() for submessage in msg.get_payload(): - if isinstance(submessage, email.Message.Message): + if submessage and isinstance(submessage, email.Message.Message): name_dict = parse_header(submessage['Content-Disposition'])[1] # name_dict is something like {'name': 'file', 'filename': 'test.txt'} for file uploads # or {'name': 'blah'} for POST fields |
