Skip to content

Commit

Permalink
Register an empty backend by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Feb 5, 2020
1 parent a300378 commit 68ba7e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sciunit/models/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

available_backends = {}


def register_backends(vars):
"""Register backends for use with models.
Expand Down Expand Up @@ -141,3 +140,8 @@ def save_results(self, path='.'):
class BackendException(Exception):
"""Generic backend exception class."""
pass

# Register the base class as a Backend just so that there is
# always something available. This Backend won't do anything
# useful other than caching.
register_backends({'None': Backend})

0 comments on commit 68ba7e3

Please sign in to comment.