aboutsummaryrefslogtreecommitdiffstats
path: root/yt/python
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2025-03-02 11:21:41 +0000
committerAlexander Smirnov <alex@ydb.tech>2025-03-02 11:21:41 +0000
commit8322fb9ff849dc37fa752d5aba04ef9e7ba2a7c9 (patch)
tree0d722004f839a80a1c4a02aa4dd2704daae5adec /yt/python
parent22b98a26c01070ae980dc5477323d8d4152aabbc (diff)
parent6678165e016ba474f1b8dd6d49af92b0d46350b9 (diff)
downloadydb-8322fb9ff849dc37fa752d5aba04ef9e7ba2a7c9.tar.gz
Merge branch 'rightlib' into merge-libs-250302-1120
Diffstat (limited to 'yt/python')
-rw-r--r--yt/python/yt/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt/python/yt/common.py b/yt/python/yt/common.py
index 975c6be6b0..26a9599e51 100644
--- a/yt/python/yt/common.py
+++ b/yt/python/yt/common.py
@@ -223,6 +223,10 @@ class YtError(Exception):
"""Already exists."""
return self.contains_code(501)
+ def is_authentication_error(self):
+ """Authentication error."""
+ return self.contains_code(900)
+
def is_access_denied(self):
"""Access denied."""
return self.contains_code(901)