From d1ea8d65ef38dec6db7a6800e96dbafea2738ac1 Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 9 Sep 2018 16:20:32 +0200 Subject: Nextcloud Munin DB Plugin + added nextcloud db size plugin * removed some unnecessary code --- nextcloud_shares | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nextcloud_shares') diff --git a/nextcloud_shares b/nextcloud_shares index fb527a6..ba247d5 100755 --- a/nextcloud_shares +++ b/nextcloud_shares @@ -45,8 +45,8 @@ class NextcloudShares: try: if None not in {os.environ['url'], os.environ['username'], os.environ['password']}: print('yes') - except KeyError as e: - print('no configuration options are missing: %s' % e) + except KeyError: + print('no env configuration options are missing') else: # read the configuration from munin environment URL = os.environ['url'] -- cgit v1.2.3-54-g00ecf