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_users | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nextcloud_users') diff --git a/nextcloud_users b/nextcloud_users index 46312fb..eac5ae6 100755 --- a/nextcloud_users +++ b/nextcloud_users @@ -37,8 +37,8 @@ class NextcloudUsers: 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