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 93d7e0024a11314124ce87f98'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/challenge.scm
AgeCommit message (Expand)Author
2021-01-16guix: Move narinfo code from substitute script to module....Christopher Baines
2020-05-22packages: Introduce <content-hash> and use it in <origin>....Ludovic Courtès
2019-12-12challenge: Support "--diff=diffoscope"....Ludovic Courtès
2019-12-12challenge: Add "--diff"....Ludovic Courtès
2018-11-12tests: Add 'test-assertm' to (guix tests)....Ludovic Courtès