Colorgcc for other compilers? Issue 1732

This commit is contained in:
Thomas Nagy 2016-04-19 21:47:37 +02:00
parent fd2981f91f
commit 8114914e62
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class ColorGCCFormatter(Logs.formatter):
while frame:
func = frame.f_code.co_name
if func == 'exec_command':
cmd = frame.f_locals['cmd']
cmd = frame.f_locals.get('cmd')
if isinstance(cmd, list) and ('gcc' in cmd[0] or 'g++' in cmd[0]):
lines = []
for line in rec.msg.splitlines():