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:
Eric Florenzano 2008-08-15 21:48:04 +00:00
parent 237a34a59f
commit d29ebe0192

View file

@ -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)