From 7e498c4197055e2557d95840afe0c960349f2f63 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sat, 23 Nov 2013 23:15:49 +0100 Subject: [PATCH] rrd.py: skip non-files --- rrd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rrd.py b/rrd.py index 8884e24..fcca041 100755 --- a/rrd.py +++ b/rrd.py @@ -144,6 +144,9 @@ class rrd: nodeDbFiles = os.listdir(self.dbPath) for fileName in nodeDbFiles: + if not os.path.isfile(fileName): + continue + nodeName = os.path.basename(fileName).split('.') if nodeName[1] == 'rrd' and not nodeName[0] == "nodes": self.createNodeGraph(nodeName[0],self.displayTimeNode)