We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ac3e5e commit f99049cCopy full SHA for f99049c
1 file changed
Registry/RegistryParse.py
@@ -985,7 +985,7 @@ def name(self):
985
if self.has_ascii_name():
986
return unpacked_string.decode("windows-1252")
987
return unpacked_string.decode("utf-16le")
988
-
+
989
def has_timestamp(self):
990
"""
991
Has a timestamp? Only AppContainer settings.dat registry hive has this!
@@ -999,7 +999,7 @@ def timestamp(self):
999
1000
if self.has_timestamp():
1001
return parse_windows_timestamp(struct.unpack_from(str("<Q"), self.raw_data()[-8:])[0])
1002
- return None
+ raise ValueError('value does not have a timestamp')
1003
1004
def data_type(self):
1005
0 commit comments