Compare commits
2 Commits
aef5f79dad
...
2b7a2bda90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b7a2bda90 | ||
|
|
8bd76f3301 |
@@ -422,7 +422,7 @@ def is_tradeable_event(e: dict[str, Any]) -> bool:
|
||||
now = datetime.now(timezone.utc)
|
||||
if end_dt < now:
|
||||
return False
|
||||
except:
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
|
||||
# Filter: match has already started (startTime is in the past)
|
||||
@@ -436,7 +436,7 @@ def is_tradeable_event(e: dict[str, Any]) -> bool:
|
||||
hours_ago = (now - start_dt).total_seconds() / 3600
|
||||
if hours_ago > 4:
|
||||
return False
|
||||
except:
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user