We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd400b7 commit d9dce23Copy full SHA for d9dce23
mp_api/client/mprester.py
@@ -221,6 +221,9 @@ def __init__(
221
"chemenv",
222
]
223
224
+ if not self.endpoint.endswith("/"):
225
+ self.endpoint += "/"
226
+
227
# Check if emmet version of server is compatible
228
emmet_version = MPRester.get_emmet_version(self.endpoint)
229
@@ -235,9 +238,6 @@ def __init__(
235
238
if notify_db_version:
236
239
raise NotImplementedError("This has not yet been implemented.")
237
240
- if not self.endpoint.endswith("/"):
- self.endpoint += "/"
-
241
# Dynamically set rester attributes.
242
# First, materials and molecules top level resters are set.
243
# Nested rested are then setup to be loaded dynamically with custom __getattr__ functions.
0 commit comments