Gracefully deal with 'stty size' failures. Submitted upstream. --- pybugz-0.6.11/bugz.py 2006-09-02 14:35:37.000000000 +0200 +++ pybugz-0.6.11/bugz.py 2014-05-05 15:17:03.000000000 +0200 @@ -288,7 +288,12 @@ def get_cols(): stty = which('stty') if stty: row_cols = commands.getoutput("%s size" % stty) - rows, cols = map(int, row_cols.split()) + try: + rows, cols = map(int, row_cols.split()) + except: + # In some cases 'stty size' will just fail with + # "Inappropriate ioctl for device". + cols = DEFAULT_NUM_COLS return cols else: return DEFAULT_NUM_COLS lue='3359d44210a704df85ec0d8849428b73c862e89d'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests/version-control.scm
AgeCommit message (Expand)Author
2018-10-18services: dhcp-client: Deprecate 'dhcp-client-service' procedure....Ludovic Courtès
2018-10-02services: Add Gitolite....Christopher Baines
2018-09-29Revert "services: Add Gitolite."...Mark H Weaver
2018-09-28services: Add Gitolite....Christopher Baines
2018-06-13tests: Honor the return value of 'start-service'....Clément Lassieur