Make ETHREAD year check dynamic

Change upper bound year check of ETHREAD to be a decade from now. Makes consistent with EPROCESS.
This commit is contained in:
j-t-1
2024-12-28 14:58:12 +00:00
committed by GitHub
parent b1a42d9510
commit 834b7d0f07
@@ -519,7 +519,8 @@ class ETHREAD(objects.StructType, pool.ExecutiveObject):
if not isinstance(ctime, datetime.datetime):
return False
if not (1998 < ctime.year < 2030):
current_year = datetime.datetime.now().year
if not (1998 < ctime.year < current_year + 10):
return False
except exceptions.InvalidAddressException: