Skip to content

Commit c6bb423

Browse files
committed
Removed redundant code after refactoring how abilities are loaded.
1 parent b2cb3d9 commit c6bb423

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pyttman/tools/pyttmancli/terraforming.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,6 @@ def bootstrap_app(module: str = None, devmode: bool = False) -> PyttmanApp:
186186
"in settings.py. Refer to the documentation for "
187187
"examples.")
188188

189-
# Instantiate the ability class and traverse over its intents.
190-
# Validate.
191-
ability = ability_class()
192-
assert issubclass(ability_class, Ability), \
193-
f"'{ability.__class__.__name__}' " \
194-
f"is not a subclass of 'Ability'. " \
195-
f"Check your ABILITIES list in settings.py and verify that " \
196-
f"all classes defined are Ability subclasses."
197-
ability_objects_set.add(ability)
198-
199189
# Instantiate router and provide the APP_NAME from settings
200190
message_router: AbstractMessageRouter = message_router_class(
201191
abilities=None,

0 commit comments

Comments
 (0)