driftx commented on code in PR #4076:
URL: https://github.com/apache/cassandra/pull/4076#discussion_r2038086411


##########
pylib/cqlshlib/util.py:
##########
@@ -74,12 +74,15 @@ def identity(x):
 def is_file_secure(filename):
     try:
         st = os.stat(filename)
+        uid = os.getuid()
     except OSError as e:
         if e.errno != errno.ENOENT:
             raise
         # the file doesn't exist, the security of it is irrelevant
         return True
-    uid = os.getuid()
+    except AttributeError as e:

Review Comment:
   This could be added to the except block above to cover both cases.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to