Skip to content

Commit

Permalink
Format endpoint in MPRester (#502)
Browse files Browse the repository at this point in the history
* Format endpoint in MPRester

* Fix warning

* Fix mypy

* Fix warnings formatting

* Fix whitespace
  • Loading branch information
Jason Munro authored Feb 1, 2022
1 parent 2f2c5f8 commit 4377f11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mp_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,18 @@ def __init__(

try:
self.contribs = Client(api_key)
except Exception:
except Exception as error:
self.contribs = None
warnings.warn(f"Problem loading MPContribs client: {error}")

self._all_resters = []

if notify_db_version:
raise NotImplementedError("This has not yet been implemented.")

if not self.endpoint.endswith("/"):
self.endpoint += "/"

for cls in BaseRester.__subclasses__():

rester = cls(
Expand Down

0 comments on commit 4377f11

Please sign in to comment.