URL:
https://github.com/freeipa/freeipa/pull/3076
Author: wladich
Title: #3076: ipa console: catch proper exception when history file can not be open
Action: opened
PR body:
"""
In python 2, when file can not be open, IOError is raised, but only OSEror
was catched. This caused "ipa console" command to crash when history file
did not exist.
In python3 OSError is raised in this situation, but as OSError is IOError
in python3, we can safely catch only IOError.
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3076/head:pr3076
git checkout pr3076