Skip to content

Commit

Permalink
Merge pull request #6 from mixxorz/fix/snapshot-list
Browse files Browse the repository at this point in the history
Fix issue where DSLR doesn't work if there are no existing snapshot
  • Loading branch information
mixxorz authored Aug 22, 2022
2 parents b8e459b + f4e8fff commit 28943b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dslr/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_snapshots() -> List[Snapshot]:
# Find the snapshot databases
result = exec_sql("SELECT datname FROM pg_database WHERE datname LIKE 'dslr_%'")

if not result:
if result is None:
raise RuntimeError("Did not get results from database.")

snapshot_dbnames = sorted([row[0] for row in result])
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "DSLR"
version = "0.3.0"
version = "0.3.1-alpha.0"
description = "Take lightning fast snapshots of your local Postgres databases."
authors = ["Mitchel Cabuloy <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 28943b4

Please sign in to comment.