summaryrefslogtreecommitdiff
path: root/src/logger.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.py')
-rw-r--r--src/logger.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/logger.py b/src/logger.py
index 1a46f5e5..7efa8f61 100644
--- a/src/logger.py
+++ b/src/logger.py
@@ -117,10 +117,15 @@ class Logger(object):
try:
fd = open(os.path.join(log_dir, jid), 'rb')
- except:
+ except FileNotFoundError:
+ log.info('Non-existing log file (%s)',
+ os.path.join(log_dir, jid),
+ exc_info=True)
+ return
+ except OSError:
log.error('Unable to open the log file (%s)',
- os.path.join(log_dir, jid),
- exc_info=True)
+ os.path.join(log_dir, jid),
+ exc_info=True)
return
if not fd:
return