Browse Source

Fixes build

Ask Solem 8 years ago
parent
commit
da258e3930
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/utils/term.py

+ 1 - 1
celery/utils/term.py

@@ -25,7 +25,7 @@ IS_WINDOWS = platform.system() == 'Windows'
 
 ITERM_PROFILE = os.environ.get('ITERM_PROFILE')
 TERM = os.environ.get('TERM')
-TERM_IS_SCREEN = TERM.startswith('screen')
+TERM_IS_SCREEN = TERM and TERM.startswith('screen')
 
 # tmux requires unrecognized OSC sequences to be wrapped with DCS tmux;
 # <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC.