Bauble / bauble.classic

this is how Bauble and Ghini both started
GNU General Public License v2.0
10 stars 34 forks source link

species.accepted still holds code from family.accepted #205

Closed mfrasca closed 8 years ago

mfrasca commented 8 years ago

https://app.getsentry.com/bauble/classic/issues/98881745/

AttributeError: 'SpeciesSynonym' object has no attribute 'family'
  File "C:\Users\cwyse\.virtualenvs\bacl\lib\site-packages\bauble-1.0.53-py2.7.egg\bauble\plugins\imex\iojson.py", line 174, in on_btnok_clicked
    self.run()  # should go in the background really
  File "C:\Users\cwyse\.virtualenvs\bacl\lib\site-packages\bauble-1.0.53-py2.7.egg\bauble\plugins\imex\iojson.py", line 215, in run
    for obj in objects]))
  File "C:\Users\cwyse\.virtualenvs\bacl\lib\site-packages\bauble-1.0.53-py2.7.egg\bauble\plugins\plants\species_model.py", line 464, in as_dict
    if recurse and self.accepted is not None:
  File "C:\Users\cwyse\.virtualenvs\bacl\lib\site-packages\bauble-1.0.53-py2.7.egg\bauble\plugins\plants\species_model.py", line 406, in accepted
    accepted = syn and syn.family