diff --git a/glances/outputs/glances_bottle.py b/glances/outputs/glances_bottle.py index 634a5895..ae033e77 100644 --- a/glances/outputs/glances_bottle.py +++ b/glances/outputs/glances_bottle.py @@ -216,8 +216,11 @@ class GlancesBottle(object): if self.args.debug: fname = os.path.join(tempfile.gettempdir(), 'glances-debug.json') - with open(fname) as f: - return f.read() + try: + with open(fname) as f: + return f.read() + except IOError: + logger.debug("Debug file (%s) not found" % fname) # Update the stat self.stats.update()