Troubleshooting reports

This commit is contained in:
Landon Wark
2023-02-16 15:30:38 -06:00
parent 85dad791ec
commit 1c89c31d25
11 changed files with 146 additions and 40 deletions

View File

@@ -1,5 +1,6 @@
import numpy as np
import logging
import getpass
logger = logging.getLogger(f"submissions.{__name__}")
@@ -10,4 +11,15 @@ def check_not_nan(cell_contents) -> bool:
return True
except Exception as e:
logger.debug(f"Check encounteded unknown error: {type(e).__name__} - {e}")
return False
return False
def check_is_power_user(ctx:dict) -> bool:
try:
check = getpass.getuser() in ctx['power_users']
except KeyError as e:
check = False
except Exception as e:
logger.debug(f"Check encounteded unknown error: {type(e).__name__} - {e}")
check = False
return check