Commit d3737aca authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Catch exceptions when calling curses.setupterm() in QA

If it's running on a non-standard terminal, such as
rxvt-unicode-256color, the call fails with an exception. Instead, catch
the exception and proceed without coloring warnings/errors.
Signed-off-by: default avatarPetr Pudlak <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 54a2661e
......@@ -90,7 +90,11 @@ def _SetupColours():
# Don't use colours if curses module can't be imported
except curses.error:
# Probably a non-standard terminal, don't use colours then
_RESET_SEQ = curses.tigetstr("op")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment