Commit 27681967 authored by Valentin Samir's avatar Valentin Samir

Also catch IOErrors (raised then we do not have the permissions to read some keys)

parent 31e5e1ea
......@@ -716,6 +716,6 @@ if __name__ == '__main__':
args.show_config, args.key_table
]):
parser.print_help()
except ValueError as error:
except (ValueError, IOError) as error:
sys.stderr.write("%s\n" % error)
sys.exit(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment