diff options
author | Florian Bruhin <git@the-compiler.org> | 2014-12-10 16:48:23 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2014-12-10 16:48:23 +0100 |
commit | ea76bdfb0fd11bfe7e48be2ec6eda5a19367642d (patch) | |
tree | dc924eb2e24d56bfed2c6737321f20a1a6e377d3 /scripts/hostblock_blame.py | |
parent | 206b5f548e643d25760c242d32aa6a67cc62f72f (diff) | |
download | qutebrowser-ea76bdfb0fd11bfe7e48be2ec6eda5a19367642d.tar.gz qutebrowser-ea76bdfb0fd11bfe7e48be2ec6eda5a19367642d.zip |
Replace all IOError by OSErrors.
Starting with Python 3.3, IOError is just an alias for OSError.
Diffstat (limited to 'scripts/hostblock_blame.py')
-rw-r--r-- | scripts/hostblock_blame.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/hostblock_blame.py b/scripts/hostblock_blame.py index 49a46aa84..8c4060542 100644 --- a/scripts/hostblock_blame.py +++ b/scripts/hostblock_blame.py @@ -49,7 +49,7 @@ def main(): print("config path: {}".format(confpath)) successful = parser.read(confpath, encoding='utf-8') if not successful: - raise IOError("configparser did not read files successfully!") + raise OSError("configparser did not read files successfully!") lists = parser['content']['host-block-lists'] for url in lists.split(','): print("checking {}...".format(url)) |