guac-coder / audit_corpus /viol_try_except.py
caug37's picture
Upload folder using huggingface_hub
498f80b verified
Raw History Blame Contribute Delete
232 Bytes
import logging
logger = logging.getLogger(__name__)
def load(path):
try:
with open(path) as fh:
return fh.read()
except Exception:
return None
if __name__ == "__main__":
load("data.txt")