diff --git a/libtorrent/bindings/python/src/session.cpp b/libtorrent/bindings/python/src/session.cpp index 4c9e65e42..7d73eab19 100755 --- a/libtorrent/bindings/python/src/session.cpp +++ b/libtorrent/bindings/python/src/session.cpp @@ -309,6 +309,7 @@ void bind_session() , session_num_connections_doc ) .def("set_settings", allow_threads(&session::set_settings), session_set_settings_doc) + .def("settings", allow_threads(&session::settings), return_value_policy()) #ifndef TORRENT_DISABLE_ENCRYPTION .def("set_pe_settings", allow_threads(&session::set_pe_settings), session_set_pe_settings_doc) .def("get_pe_settings", allow_threads(&session::get_pe_settings), return_value_policy())