Skip to content

Commit e0bad67

Browse files
committed
lint issue
1 parent b8e6025 commit e0bad67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mns_subscription/src/mns_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def subscribe_notification(self) -> dict | None:
5151
if response.status_code == 201:
5252
return response.json()
5353
else:
54-
raise Exception(f"Subscription failed: {response.status_code} - {response.text}")
54+
raise UnauthorizedError(response=response.json, messag="You don't have the right permissions for this request")
5555

5656
def get_subscription(self) -> dict | None:
5757
response = requests.get(MNS_URL, headers=self.request_headers, timeout=10)

0 commit comments

Comments
 (0)