Code review comment for lp:~mike-amy/sahana-eden/climate

Revision history for this message
Fran Boon (flavour) wrote :

Thanks for cleaning up.

self.debug isn't appropriate for use in gis.import_csv()
This function only gets used via the CLI currently.
session doesn't exist here so session.s3.debug will raise an error.
I definitely want the old behaviour - i.e. provide a warning message to the console, but don't stop what you're doing (we can choose not to db.commit() if we see the errors as fatal). No point in adding stuff to session which won't be seen.
I'm not keen on it elsewhere, but I'll accept it for now at least, but in that location it's clearly wrong.

review: Needs Fixing

« Back to merge proposal