diff --git a/restic-exporter.py b/restic-exporter.py index 03edee7..c63e040 100644 --- a/restic-exporter.py +++ b/restic-exporter.py @@ -168,7 +168,7 @@ class ResticCollector(object): clients.append( { "hostname": snap["hostname"], - "username": snap["username"], + "username": snap["username"] if "username" in snap else "", "snapshot_hash": snap["hash"], "snapshot_tag": tag, "timestamp": timestamp,