mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-05-18 12:31:07 +00:00
Got rid of two print statements that could cause mod_wsgi to error out.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@22 c76b2324-5f53-0410-85ac-b1078a54aeeb
This commit is contained in:
parent
237a34a59f
commit
d29ebe0192
1 changed files with 1 additions and 3 deletions
|
|
@ -125,10 +125,8 @@ def change(request, extra_context={}, next_override=None):
|
|||
os.makedirs(os.path.join(
|
||||
settings.MEDIA_ROOT, "/".join(path.split('/')[:-1])))
|
||||
except OSError, e:
|
||||
print e
|
||||
pass # The dirs already exist.
|
||||
new_file = default_storage.open(path, 'wb')
|
||||
print new_file
|
||||
for i, chunk in enumerate(request.FILES['avatar'].chunks()):
|
||||
if i * 16 == MAX_MEGABYTES:
|
||||
raise Http404 # TODO: Is this the right thing to do?
|
||||
|
|
@ -189,4 +187,4 @@ def delete(request, extra_context={}, next_override=None):
|
|||
'next': next_override or _get_next(request), }
|
||||
)
|
||||
)
|
||||
change = login_required(change)
|
||||
change = login_required(change)
|
||||
|
|
|
|||
Loading…
Reference in a new issue