Browse Source

Fix coverage

tags/nilmdb-1.5.2^0
Jim Paris 11 years ago
parent
commit
bfb09a189f
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      nilmdb/cmdline/destroy.py

+ 2
- 5
nilmdb/cmdline/destroy.py View File

@@ -41,12 +41,9 @@ def cmd_destroy(self):
if not self.args.quiet and len(paths) > 1:
printf("Destroying %s\n", path)

if self.args.remove:
try:
count = self.client.stream_remove(path)
except nilmdb.client.ClientError as e:
self.die("error removing data: %s", str(e))
try:
if self.args.remove:
count = self.client.stream_remove(path)
self.client.stream_destroy(path)
except nilmdb.client.ClientError as e:
self.die("error destroying stream: %s", str(e))

Loading…
Cancel
Save