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 bfe91c529195a500eb10ff173f4b5ad'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/cdrom.scm
AgeCommit message (Expand)Author
2019-09-01gnu: cdemu-client: Update to 3.2.3....* gnu/packages/cdrom.scm (cdemu-client): Update to 3.2.3. Tobias Geerinckx-Rice
2019-09-01gnu: cdemu-daemon: Update to 3.2.3....* gnu/packages/cdrom.scm (cdemu-daemon): Update to 3.2.3. Tobias Geerinckx-Rice
2019-09-01gnu: libmirage: Update to 3.2.3....* gnu/packages/cdrom.scm (libmirage): Update to 3.2.3. Tobias Geerinckx-Rice