Skip to content

Commit

Permalink
Add basic error output
Browse files Browse the repository at this point in the history
  • Loading branch information
diddi- committed Apr 19, 2019
1 parent fc16e02 commit 711daf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flask_seeder/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ def seed_run(root, seeders):
seeder.db = db
try:
seeder.run()
# pylint: disable=bare-except
except:
# pylint: disable=broad-except,invalid-name
except Exception as e:
click.echo("%s...\t[ERROR]" % seeder.name)
click.echo("\t%s" % e)
continue

click.echo("%s...\t[OK]" % seeder.name)
Expand Down

0 comments on commit 711daf3

Please sign in to comment.