openlibhums / imports

A plugin for importing content into Janeway.
GNU Affero General Public License v3.0
1 stars 2 forks source link

Printing error causes error from management command #98

Open everreau opened 3 months ago

everreau commented 3 months ago
                if row.get("error"):
                    self.stderr.write(f"Row failed: {row.error}\n{row.article}")

This code causes errors like: 'dict' object has no attribute 'error'