original_docstring: Check user is valid or not
docstring: Check user is valid or not
docstring_tokens: Check user is valid or not
code: def _get_user(username):
      """Check user is valid or not"""
      try:
          return pagure.lib.query.get_user(flask.g.session, username)
      except pagure.exceptions.PagureException:
          raise pagure.exceptions.APIError(404, error_code=APIERROR.ENOUSER)
code_tokens: def _get_user ( username ) : try : return pagure . lib . query . get_user ( flask . g . session , username ) except pagure . exceptions . PagureException : raise pagure . exceptions . APIError ( 404 , error_code = APIERROR . ENOUSER )
short_docstring: Check user is valid or not
short_docstring_tokens: Check user is valid or not
comment: """Check user is valid or not"""