[rhinstaller/anaconda/pulls/104 master] Fix IndexError: list index out of range (#1219004)

mulkieran installerbot-noreply at redhat.com
Tue May 12 16:22:45 UTC 2015


I'm puzzled by a couple of things:
* why check ```keyid < 0``` since a negative index is valid in Python?
* why is an ```IndexError``` accessing in ```_regions``` array considered a normal behavior...i.e. why is the int key that is out of array bounds still useful to input()'s caller
* what about the access that uses keyid in ```self._timezones[args][keyid]``` expression? why is it not necessary to worry about ```IndexError``` in that case?
-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/104


More information about the anaconda-patches mailing list