Skip to content
Snippets Groups Projects
Commit f0943de9 authored by sveseli's avatar sveseli
Browse files

log exception, corrected space issues

parent d399c498
No related branches found
No related tags found
No related merge requests found
...@@ -45,10 +45,10 @@ class DmFileSystemEventHandler(FileSystemEventHandler): ...@@ -45,10 +45,10 @@ class DmFileSystemEventHandler(FileSystemEventHandler):
filePath = max(files, key=os.path.getctime) filePath = max(files, key=os.path.getctime)
self.logger.debug('File system directory modified event: %s , latest file: %s' % (event.__dict__, filePath)) self.logger.debug('File system directory modified event: %s , latest file: %s' % (event.__dict__, filePath))
self.fileSystemObserver.fileUpdated(filePath, self.dataDirectory, self.experiment) self.fileSystemObserver.fileUpdated(filePath, self.dataDirectory, self.experiment)
except: except Exception, ex:
self.logger.error('Exception occured when searching for file in directory: %s' % (event.__dict__)) self.logger.error('Exception occured when searching for file in directory %s: %s' % (event.__dict__, ex))
else: else:
filePath = event.src_path filePath = event.src_path
self.logger.debug('File system modified event: %s' % (event.__dict__)) self.logger.debug('File system modified event: %s' % (event.__dict__))
self.fileSystemObserver.fileUpdated(filePath, self.dataDirectory, self.experiment) self.fileSystemObserver.fileUpdated(filePath, self.dataDirectory, self.experiment)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment