cleaning unused settings

This commit is contained in:
Philip Sargent
2022-04-06 21:01:31 +03:00
parent 18c2892967
commit ed71fa48f1
2 changed files with 5 additions and 2 deletions

View File

@@ -68,6 +68,9 @@ def get_or_create_placeholder(year):
return placeholder_logbook_entry
def listdir(*directories):
'''WHAT is this ?! Some python2 fossil. The only use of settings.SURVEYS
local import statement to be avoided, please.
'''
try:
return os.listdir(os.path.join(settings.SURVEYS, *directories))
except: