1. Richard Lawrence
  2. schoolutils

Commits

Richard Lawrence  committed 30cc875

* schoolutils/config/__init__.py: BUGFIX: properly create empty user_validators

  • Participants
  • Parent commits 4d1cce5
  • Branches master

Comments (0)

Files changed (1)

File schoolutils/config/__init__.py

View file
         user_validators = imp.load_source('user_validators',
                                           USER_VALIDATORS_FILE) 
     except (IOError, ImportError):
-        user_validators = validators
+        user_validators = imp.new_module('user_validators')
         
     return user_config, user_calculators, user_validators