exceptions: don't log error the lookup method errors. This happens so often we spam

the logs with errors , while it's simply commit not found. Other backends don't report this anyway exception HG.
This commit is contained in:
Marcin Kuzminski 2018-07-23 14:50:15 +02:00
parent 21c608be71
commit b51d537e66

View file

@ -205,7 +205,7 @@ def map_vcs_exceptions(func):
args = e.args
else:
args = [__traceback_info__ or 'unhandledException']
if __traceback_info__ and kind != 'unhandled':
if __traceback_info__ and kind not in ['unhandled', 'lookup']:
# for other than unhandled errors also log the traceback
# can be usefull for debugging
log.error(__traceback_info__)