Skip to content

Commit f694a41

Browse files
committed
added try/except
1 parent 09b9d5d commit f694a41

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

collector.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,11 @@ def gather(self):
380380

381381
# get info from weka cluster - these are quick calls
382382
for stat, command in self.WEKAINFO.items():
383-
wekadata[stat] = cluster.call_api(command['method'], command['parms'])
384-
self.api_stats['num_calls'] += 1
383+
try:
384+
wekadata[stat] = cluster.call_api(command['method'], command['parms'])
385+
self.api_stats['num_calls'] += 1
386+
except Exception as exc:
387+
log.error(f"Error calling method {command['method']}: {exc}")
385388

386389
# clear old maps, if any - if nodes come/go this can get funky with old data, so re-create it every time
387390
node_host_map = dict()

docker_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22
./build.sh
33
VERSION=$(./tarball/export/export --version | awk '{print $3}')
4-
docker build --tag wekasolutions/export:latest --tag wekasolutions/export:$VERSION .
4+
docker build --tag wekasolutions/export:$VERSION .
55
#docker build --tag wekasolutions/export:$VERSION .

export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from wekalib.wekacluster import WekaCluster
3030
import wekalib.exceptions
3131

32-
VERSION = "1.6.10"
32+
VERSION = "1.6.11"
3333

3434
#VERSION = "experimental"
3535

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ PyYAML>=5.4.1
55
requests>=2.25.1
66
six>=1.15.0
77
urllib3
8-
wekalib>=1.4.12
8+
wekalib==1.4.12

0 commit comments

Comments
 (0)