dysath / seat-fitting

A Fitting/Doctrine module for SeAT
GNU General Public License v2.0
14 stars 21 forks source link

Remove bad fittings #84

Closed tehraven closed 2 years ago

tehraven commented 2 years ago

A fitting can be saved improperly to the DB in a way where future recall (on these lines of code) will fail to resolve the ship type.

This is entirely user error in the fitting import process...

However, we can help by not crashing with a HTTP 500 NPE, and also just cleaning up the database when this happens.

tehraven commented 2 years ago

Closing this down. Will wait for a refactor (which is coming soon) that cleans up this code meaningfully. Thanks @Crypta-Eve