Skip to content

Commit 5075724

Browse files
author
Jon Wayne Parrott
committed
Fix lint error in blobstore sample
Change-Id: I343f82d2cf2707195f0b638643ab6038c5be9e79
1 parent e6f2e86 commit 5075724

File tree

1 file changed

+6
-10
lines changed
  • appengine/standard/blobstore/api

1 file changed

+6
-10
lines changed

appengine/standard/blobstore/api/main.py

+6-10
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,13 @@ def get(self):
5353
# [START upload_handler]
5454
class PhotoUploadHandler(blobstore_handlers.BlobstoreUploadHandler):
5555
def post(self):
56-
try:
57-
upload = self.get_uploads()[0]
58-
user_photo = UserPhoto(
59-
user=users.get_current_user().user_id(),
60-
blob_key=upload.key())
61-
user_photo.put()
56+
upload = self.get_uploads()[0]
57+
user_photo = UserPhoto(
58+
user=users.get_current_user().user_id(),
59+
blob_key=upload.key())
60+
user_photo.put()
6261

63-
self.redirect('/view_photo/%s' % upload.key())
64-
65-
except:
66-
self.error(500)
62+
self.redirect('/view_photo/%s' % upload.key())
6763
# [END upload_handler]
6864

6965

0 commit comments

Comments
 (0)