Skip to content

Commit

Permalink
added line to make sure tables are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Dec 14, 2023
1 parent c206b77 commit 6b7404a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion samples/hello_happybase/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ def main(project_id, instance_id, table_name):

finally:
connection.close()

# make sure table is deleted
try:
table = instance.table(table_id)
table.delete()
except Exception:
pass

if __name__ == "__main__":
parser = argparse.ArgumentParser(
Expand Down

0 comments on commit 6b7404a

Please sign in to comment.