Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1cb977d

Browse files
authored
fix: correct notification error message (#1290)
To create a new notification, the notification_id field must beset to None. Update the error message to clarify this.Fixes#1289
1 parent693f195 commit1cb977d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎google/cloud/storage/notification.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def create(self, client=None, timeout=_DEFAULT_TIMEOUT, retry=None):
255255
"""
256256
ifself.notification_idisnotNone:
257257
raiseValueError(
258-
f"Notification alreadyexists w/ id:{self.notification_id}"
258+
f"notification_id alreadyset to{self.notification_id}; must be None to create a Notification."
259259
)
260260

261261
client=self._require_client(client)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp