Skip to content

Commit b9a8b3f

Browse files
committed
added exception for subscriptions
1 parent ba771b7 commit b9a8b3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/amlen_exporter.py

+2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ def collect(self):
174174
yield metric
175175
except KeyError:
176176
print('Error collecting Subscription data: No Subscription key')
177+
except Exception as ex:
178+
print(f'Cannot create subscription metrics: {type(ex).__name__}')
177179
return None
178180

179181
class JsonEndpointCollector():

0 commit comments

Comments
 (0)