Browse Source

Intermediate changes
commit_hash:7ad07277d06b5e0262365ccafc9af63081d6abd8

robot-piglet 1 week ago
parent
commit
b8213a94b9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      yt/python/yt/common.py

+ 4 - 0
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)