def get_current_context(silent=False):
 try:
  return getattr(_local, 'stack')[(-1)]
 except (AttributeError, IndexError):
  if (not silent):
   raise RuntimeError('There is no active click context.')

def get_current_context ( silent = False ) : try : return getattr ( _local , 'stack' ) [ ( - 1 ) ] except ( AttributeError , IndexError ) : if ( not silent ) : raise RuntimeError ( 'There is no active click context.' )
returns the current click context .