diff options
| -rw-r--r-- | snekbox/nsjail.py | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index 76154ae..6f6a155 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -277,6 +277,13 @@ class NsJail:                      timeout=self.files_timeout,                  )                  log.info(f"Found {len(attachments)} files.") +            except RecursionError: +                log.info("Recursion error while parsing attachments") +                return EvalResult( +                    args, +                    None, +                    "FileParsingError: Exceeded directory depth limit while parsing attachments", +                )              except TimeoutError as e:                  log.info(f"Exceeded time limit while parsing attachments: {e}")                  return EvalResult( | 
