Skip to content

Commit

Permalink
Added AttributeError to try/except statement in db.add_data() method
Browse files Browse the repository at this point in the history
  • Loading branch information
hover2pi committed Jun 18, 2016
1 parent 956731a commit 912f69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astrodbkit/astrodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def add_data(self, data, table, delimiter='|', bands=''):
try:
temp = data[col].astype(new_records[col].dtype)
data.replace_column(col, temp)
except KeyError:
except (KeyError,AttributeError):
continue

# If a row contains photometry for multiple bands, use the *multiband argument and execute this
Expand Down

0 comments on commit 912f69e

Please sign in to comment.