Improve error handling in webide backend

This commit is contained in:
Kristóf Tóth 2018-03-14 14:15:40 +01:00
parent d4d6bdad0f
commit 929ea905c5

View File

@ -106,7 +106,7 @@ class SourceCodeEventHandler(TriggerlessEventHandler):
except IndexError:
data['content'] = 'No files in this directory :('
except EnvironmentError:
log.exception('Failed to select directory "{}"'.format(data['directory']))
log.error('Failed to select directory "{}"'.format(data['directory']))
return data
def attach_fileinfo(self, data):