summaryrefslogtreecommitdiffstats
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-03 20:04:48 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-03 20:04:48 +0200
commite9056b121d6e9751bc0f802c09d4697a6ce4bdd5 (patch)
tree551dd86f9d82b4034ad2c6382fc6e689930ba6ff /src/if_py_both.h
parent01d89dddfa710f8a014f9bb85ffff4ad35451dc9 (diff)
updated for version 7.3.1108v7.3.1108
Problem: Error message for os.fchdir() (Charles Peacech) Solution: Clear the error. (ZyX)
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 99fdd80ce5..945efe60b6 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -5413,6 +5413,8 @@ populate_module(PyObject *m, object_adder add_object, attr_getter get_attr)
if (PyObject_SetAttrString(os, "fchdir", get_attr(m, "fchdir")))
return -1;
}
+ else
+ PyErr_Clear();
return 0;
}