Ask Solem %!s(int64=8) %!d(string=hai) anos
pai
achega
da258e3930
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.