1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Correcting logs in class methods

This commit is contained in:
Данила Скачедубов 2024-01-24 14:41:48 +04:00 committed by Valery Sinelnikov
parent 9117dddcee
commit 12865b0b43

View File

@ -122,6 +122,7 @@ class Dconf_registry():
@staticmethod
def get_key_value(key):
logdata = dict()
try:
process = subprocess.Popen(['dconf', 'read', key],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
@ -163,6 +164,7 @@ class Dconf_registry():
@classmethod
def apply_template(self, uid):
logdata = dict()
if uid and self.check_profile_template():
with open(self.__template_file, "r") as f:
template = f.read()