Skip to content

Commit cbe5ef4

Browse files
committed
Fixed a bug
The data dictionary was getting overwritten by the session_hash rather than just being added to the rest of the data dictionary.
1 parent 44c4e3b commit cbe5ef4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openml/apiconnector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def _read_url(self, url, add_authentication=False, data=None):
891891
if data is None:
892892
data = {}
893893
if add_authentication:
894-
data = {'session_hash': self._session_hash}
894+
data['session_hash'] = self._session_hash
895895
data = urlencode(data)
896896
data = data.encode('utf-8')
897897

0 commit comments

Comments
 (0)