I am combining multiple csv files into a single dataframe using this line -
df = pd.concat(map(pd.read_csv, files), ignore_index=True)
I was earlier using a for loop where I combine two dataframes at time. This allowed me to use try-catch statements to catch any errors arising from empty/badly formatted csv files. But with the single-line command presented at the top, how do I enter a similar try-catch condition?