diff options
author | Andy Gross <andy@basho.com> | 2014-08-13 13:58:06 -0700 |
---|---|---|
committer | Andy Gross <andy@basho.com> | 2014-08-13 13:58:06 -0700 |
commit | 0808f7f57a69cb9047a8bb62b2f1cb1989ff677c (patch) | |
tree | 597d150682afce9846acc6df0220f0ab4a314fad | |
parent | 4eb4bbe214bd9650fd20cbf3672cdb9765762982 (diff) | |
download | pluginbase-0808f7f57a69cb9047a8bb62b2f1cb1989ff677c.tar.gz |
Fix non-existent errno raised in open_resource
I think the intention was to raise ENOEXIST - and while I see references to that errno in a google search, the standard errno in this case is ENOENT.
-rw-r--r-- | pluginbase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pluginbase.py b/pluginbase.py index 1158ed9..e264649 100644 --- a/pluginbase.py +++ b/pluginbase.py @@ -292,7 +292,7 @@ class PluginSource(object): return open(os.path.join(os.path.dirname(fn), filename), 'rb') buf = pkgutil.get_data(self.mod.__name__ + '.' + plugin, filename) if buf is None: - raise IOError(errno.ENOEXITS, 'Could not find resource') + raise IOError(errno.ENOENT, 'Could not find resource') return NativeBytesIO(buf) def cleanup(self): |