Skip to content

Commit

Permalink
Close the DB connection after the dump is done
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Oct 4, 2021
1 parent db765c0 commit 482f71a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def main():

logging.info(f'Dumped {dumped_count} from total of {dump_count}')

conn.close()

if dumped_count != dump_count:
exit(1)

Expand Down

0 comments on commit 482f71a

Please sign in to comment.