Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
Db metadata error catch problem
  • Loading branch information
emin100 authored Oct 26, 2020
1 parent 91782fb commit 778e552
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ def dbmeta(url_type=None):

if form_cred.validate_on_submit():
conn = None
error_auth_form = False
try:
db = databases[form.db.data]
conn = psycopg2.connect(db, user=form_cred.username.data, password=form_cred.password.data)
Expand Down

0 comments on commit 778e552

Please sign in to comment.