<commit_before>from dckrmgr import cli
from dckrmgr import m_cmd

def func(ctx):
    cnf = ctx['cnf']
    cli.stop(cnf['name'])
    print('Stopped ' + cnf['name'])
    return 0

m_cmd['t'] = {
    'hlp': 'Stop container',
    'ord': 'rev',
    'fnc': func
}<commit_msg>Trying to make stop more robust<commit_after>from dckrmgr import cli
from dckrmgr import m_cmd

def func(ctx):
    cnf = ctx['cnf']
    try:
      cli.stop(cnf['name'])
      print('Stopped ' + cnf['name'])
    except HTTPError:
      print('Could not stop ' + cnf['name'] + '!')
    return 0

m_cmd['t'] = {
    'hlp': 'Stop container',
    'ord': 'rev',
    'fnc': func
}
{'fraction_non_alphanumeric': 0.17601246105919002, 'fraction_numerical': 0.003115264797507788, 'mean_word_length': 3.0955414012738856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3544930', 'n_tokens_mistral': 255, 'n_tokens_neox': 251, 'n_words': 62}