Skip to content

Commit 3cd6d30

Browse files
committed
also fix sync client
1 parent f57e535 commit 3cd6d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mystbin/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def get(self, paste_id: str) -> PasteData:
171171
paste_id = paste_id_match.group("ID")
172172

173173
with self.session.get(f"{API_BASE_URL}/{paste_id}", timeout=CLIENT_TIMEOUT) as response:
174-
if 200 <= response.status_code < 300:
174+
if not 200 <= response.status_code < 300:
175175
raise BadPasteID("This is an invalid Mystb.in paste ID.", response)
176176

177177
paste_data = response.json()

0 commit comments

Comments
 (0)