diff src/if_py_both.h @ 4722:3534e9b4fa42 v7.3.1108

updated for version 7.3.1108 Problem: Error message for os.fchdir() (Charles Peacech) Solution: Clear the error. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Mon, 03 Jun 2013 20:04:48 +0200
parents bf917ee1fad2
children be1e4acb30ca
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -5413,6 +5413,8 @@ populate_module(PyObject *m, object_adde
 	if (PyObject_SetAttrString(os, "fchdir", get_attr(m, "fchdir")))
 	    return -1;
     }
+    else
+	PyErr_Clear();
 
     return 0;
 }