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 f57e535 commit 3cd6d30Copy full SHA for 3cd6d30
mystbin/client.py
@@ -171,7 +171,7 @@ def get(self, paste_id: str) -> PasteData:
171
paste_id = paste_id_match.group("ID")
172
173
with self.session.get(f"{API_BASE_URL}/{paste_id}", timeout=CLIENT_TIMEOUT) as response:
174
- if 200 <= response.status_code < 300:
+ if not 200 <= response.status_code < 300:
175
raise BadPasteID("This is an invalid Mystb.in paste ID.", response)
176
177
paste_data = response.json()
0 commit comments