arafel/Gribbit — Issue #9: Exception getting terminal width when SSH session closing
Author: arafel
Created: 2011-11-02 14:37:51+00:00
State: open

2011-10-28 18:09:44,268 - gribbit.handler - INFO - Signal handler called, signum 1
2011-10-28 18:09:44,289 - gribbit - INFO - Got signal 1
2011-10-28 18:09:44,289 - gribbit - INFO - Reloading config file
2011-10-28 18:09:44,334 - gribbit - INFO - Parsed config from gribbit.cfg
2011-10-28 18:09:44,335 - gribbit - INFO - Set options.log_debug to False
2011-10-28 18:09:44,337 - gribbit - INFO - Automatic wrap width, getting terminal size
2011-10-28 18:09:44,355 - gribbit - CRITICAL - Uncaught exception
Traceback (most recent call last):
File "./gribbit", line 287, in main
load_config(logger)
File "./gribbit", line 166, in load_config
apply_config(cfg, logger)
File "./gribbit", line 147, in apply_config
options["text_wrap"] = get_wrap_width(cfg.get(section, option), logger)
File "./gribbit", line 89, in get_wrap_width
width, height = get_terminal_size()
File "./gribbit", line 70, in get_terminal_size
cr[0] = os.environ.get("LINES", "25")
TypeError: 'NoneType' object does not support item assignment