sregistry/main/base/settings.py
def required_get_and_update(self, name, default=None):
    '''a wrapper to get_and_update, but if not successful, will print an
       error and exit.
    '''
    setting = self._get_and_update_setting(name, default=None)
    if setting in [None, ""]:
        bot.exit('You must export %s' % name)
    return setting
def required_get_and_update(self, name, default=None):
    '''a wrapper to get_and_update, but if not successful, will print an
       error and exit.
    '''
    setting = self._get_and_update_setting(name, default=None)
    if setting in [None, ""]:
        bot.exit('You must export %s' % name)
    return setting
def required_get_and_update ( self , name , default = None ) : setting = self . _get_and_update_setting ( name , default = None ) if setting in [ None , "" ] : bot . exit ( 'You must export %s' % name ) return setting
a wrapper to get_and_update, but if not successful, will print an
       error and exit.
a wrapper to get_and_update but if not successful will print an error and exit .