(*args)
Informs the user of errors in a friendly manner
        :param args: list of errors
        :return: None
Informs the user of errors in a friendly manner
        :param args: list of errors
        :return: None
Informs the user of errors in a friendly manner : param args : list of errors : return : None
def handle_callback_error(*args):
        """
        Informs the user of errors in a friendly manner
        :param args: list of errors
        :return: None
        """
        print(args)
        received_error = str(args[1])
        errors = {
            "<class 'prawcore.exceptions.ResponseException'>": 'Failed to login to reddit!',
            "<class 'tweepy.error.TweepError'>": 'Failed to login to twitter!',
            "<class 'KeyError'>": 'You are not logged in!',
            "<class 'IndexError'>": 'No tweets/favorites found!',
            "<class 'AttributeError'>": 'You are not logged in!'
        }
        if (received_error.find("KeyError: '") > 0 and received_error != "<class 'KeyError'>"):
            keyErrorString = 'Corrupted database. To fix this, search your machine for the file "reddit_state.db" and delete it, then restart Social Amnesia and log in to reddit again.'
            messagebox.showerror('Error', keyErrorString)
        else:
            messagebox.showerror('Error', errors.get(
                received_error, received_error))
def handle_callback_error ( * args ) : print ( args ) received_error = str ( args [ 1 ] ) errors = { "<class 'prawcore.exceptions.ResponseException'>" : 'Failed to login to reddit!' , "<class 'tweepy.error.TweepError'>" : 'Failed to login to twitter!' , "<class 'KeyError'>" : 'You are not logged in!' , "<class 'IndexError'>" : 'No tweets/favorites found!' , "<class 'AttributeError'>" : 'You are not logged in!' } if ( received_error . find ( "KeyError: '" ) > 0 and received_error != "<class 'KeyError'>" ) : keyErrorString = 'Corrupted database. To fix this, search your machine for the file "reddit_state.db" and delete it, then restart Social Amnesia and log in to reddit again.' messagebox . showerror ( 'Error' , keyErrorString ) else : messagebox . showerror ( 'Error' , errors . get ( received_error , received_error ) )