changeset 52640 | 24ee91ba9aa8 |
parent 48935 | 2cce2fa5bcf7 |
child 52648 | abc327f9628b |
--- a/contrib/synthrepo.py Mon Jan 06 14:15:40 2025 -0500 +++ b/contrib/synthrepo.py Sun Jan 05 21:03:17 2025 -0500 @@ -327,7 +327,7 @@ dictfile = opts.get('dict') or '/usr/share/dict/words' try: fp = open(dictfile, 'rU') - except IOError as err: + except OSError as err: raise error.Abort('%s: %s' % (dictfile, err.strerror)) words = fp.read().splitlines() fp.close()