fix ValueError bug

This commit is contained in:
Tyrel Souza 2015-07-20 14:38:11 -04:00
parent 0eaecc0741
commit 1f2b9426f8

View File

@ -80,6 +80,8 @@ class AttributionReport(object):
deposit_df = self._get_dataframe_by_extension(fname, date_cols=[self.DP_DATE_COLUMN, ]) deposit_df = self._get_dataframe_by_extension(fname, date_cols=[self.DP_DATE_COLUMN, ])
except IndexError: except IndexError:
return False return False
except ValueError:
return False
except: except:
raise raise
if set(self.REQUIRED_DP_COLUMNS) < set(deposit_df.columns): if set(self.REQUIRED_DP_COLUMNS) < set(deposit_df.columns):