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 431c499 commit 0ad33d9Copy full SHA for 0ad33d9
examples/native_sync/using_etag.py
@@ -53,6 +53,8 @@
53
).if_matches_etag(original_e_tag).sync()
54
except PubNubException as e:
55
# We get an exception and after reading the error message we can see that the reason is that the eTag is outdated.
56
- print(f"Update failed: {e.get_error_message().get('message')}")
+ print(f"Update failed: {e.get_error_message().get('message')}\nHTTP Status Code: {e.get_status_code()}")
57
+
58
59
except Exception as e:
60
print(f"Unexpected error: {e}")
0 commit comments