original_docstring: 
  		Read tags out of .ogg files encoded with different codecs
  		Returns a tuple (tag, error)
  	
docstring: Read tags out of .ogg files encoded with different codecs
  Returns a tuple (tag, error)
docstring_tokens: Read tags out of . ogg files encoded with different codecs Returns a tuple ( tag error )
code: def extract_ogg_tag(path):
  	
  	"""
  		Read tags out of .ogg files encoded with different codecs
  		Returns a tuple (tag, error)
  	"""
  	ogg_tag = None
  	error = None
  
  	# Encapsulate all try except blocks in if statements.
  	# Only read for tag if it already does not exist.
  
  	if not ogg_tag:		
  		try:
  			# Try to read ogg-Vorbis files
  			ogg_tag = OggVorbis(path)
  
  		except Exception:
  			# move to next codec type
  			pass
  
  	if not ogg_tag:		
  		try:
  			# Try to read ogg-FLAC files
  			ogg_tag = OggFLAC(path)
  
  		except Exception:
  			# move to next codec type
  			pass
  
  	if not ogg_tag:
  		# log error for user to see
  		error = 'Unable to read metadata from the .ogg/.oga file. Only Vorbis and FLAC are supported.'
  
  	return (ogg_tag, error)
code_tokens: def extract_ogg_tag ( path ) : ogg_tag = None error = None if not ogg_tag : try : ogg_tag = OggVorbis ( path ) except Exception : pass if not ogg_tag : try : ogg_tag = OggFLAC ( path ) except Exception : pass if not ogg_tag : error = 'Unable to read metadata from the .ogg/.oga file. Only Vorbis and FLAC are supported.' return ( ogg_tag , error )
short_docstring: Read tags out of .ogg files encoded with different codecs
  Returns a tuple (tag, error)
short_docstring_tokens: Read tags out of . ogg files encoded with different codecs Returns a tuple ( tag error )
comment: """
  		Read tags out of .ogg files encoded with different codecs
  		Returns a tuple (tag, error)
  	"""$SEP$# Encapsulate all try except blocks in if statements.$SEP$# Only read for tag if it already does not exist.$SEP$# Try to read ogg-Vorbis files$SEP$# move to next codec type$SEP$# Try to read ogg-FLAC files$SEP$# move to next codec type$SEP$# log error for user to see