示例#1
0
def profile():
  try:
    user = User()
  except APIError:
    abort(500) # Internal Server Error
  except UnauthorizedError:
    return redirect(url_for('login', next=request.url))

  return render_template(
    'profile.html',
    user=user,
    public=Room.public_rooms()
  )