Ask Solem hace 8 años
padre
commit
da258e3930
Se han modificado 1 ficheros con 1 adiciones y 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.