<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def art_list(test=False):
 """ Print all 1-Line arts. :param test : exception test flag :type test : bool :return: None """

    for i in sorted(list(art_dic.keys())):
        try:
            if test:
                raise Exception
            print(i)
            aprint(i)
            line()
        except Exception:
            print(ART_ENVIRONMENT_WARNING)
            line()
            if test:
                break