foreign char handling
@@ -256,6 +256,8 @@ class DiskUtil(object):
errMsg = 'Exception in mount command, error: %s, stack trace: %s' % (str(e), traceback.format_exc())
self.logger.log(errMsg, True, 'Error')
is_mount_path_wrong = True
+
+ try:
if is_mount_path_wrong == False :
out_mount_output, err = p.communicate()
if sys.version_info > (3,):
@@ -266,6 +268,10 @@ class DiskUtil(object):
error_msg = str(err)
if(error_msg is not None and error_msg.strip() != ""):
self.logger.log(str(err), True)
+ except Exception as e:
+ errMsg = 'Exception in mount output reading, error: %s, stack trace: %s' % (str(e), traceback.format_exc())
+ self.logger.log(errMsg, True, 'Error')
+
return is_mount_path_wrong, out_mount_output, error_msg
def get_mount_points(self):
