Troubleshooting reports
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user