Loading installation-birthday +2 −1 Original line number Diff line number Diff line Loading @@ -145,6 +145,7 @@ class Birthday: def check_output(self, *args, **kwargs): kwargs.setdefault("stderr", subprocess.DEVNULL) kwargs.setdefault("env", {"TZ": "UTC"}) output = subprocess.check_output(*args, **kwargs).decode("utf-8") Loading Loading @@ -197,7 +198,7 @@ class Birthday: dt = datetime.datetime.strptime( lookup["Filesystem created"].strip(), "%a %b %d %H:%M:%S %Y", ) ).replace(tzinfo=datetime.UTC) self.log.debug("Found mtime of %s -> %s", device, dt) yield dt except (KeyError, ValueError): Loading Loading
installation-birthday +2 −1 Original line number Diff line number Diff line Loading @@ -145,6 +145,7 @@ class Birthday: def check_output(self, *args, **kwargs): kwargs.setdefault("stderr", subprocess.DEVNULL) kwargs.setdefault("env", {"TZ": "UTC"}) output = subprocess.check_output(*args, **kwargs).decode("utf-8") Loading Loading @@ -197,7 +198,7 @@ class Birthday: dt = datetime.datetime.strptime( lookup["Filesystem created"].strip(), "%a %b %d %H:%M:%S %Y", ) ).replace(tzinfo=datetime.UTC) self.log.debug("Found mtime of %s -> %s", device, dt) yield dt except (KeyError, ValueError): Loading