MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _as_int

Method _as_int

IntelOSINT.py:15790–15799  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

15788 return str(v).strip()
15789
15790 def _as_int(v):
15791 try:
15792 if v is None or str(v).strip() == "":
15793 return "N/A"
15794 return str(int(v))
15795 except Exception:
15796 try:
15797 return str(int(float(v)))
15798 except Exception:
15799 return str(v).strip() or "N/A"
15800
15801 def _safe_obj(v):
15802 if v is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected