Skip to content

Commit 3537717

Browse files
committed
basic exception handling
1 parent 09809de commit 3537717

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

worldcities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def city(name=None):
4646
ibm_db.close(db2conn)
4747
return render_template('city.html', ci=rows)
4848
except:
49-
return "Db2 connection issues"
49+
return render_template('city.html', ci=[])
5050

5151

5252
# main page to dump some environment information

0 commit comments

Comments
 (0)