We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb1396 commit b2cb3d9Copy full SHA for b2cb3d9
pyttman/tools/pyttmancli/terraforming.py
@@ -3,6 +3,7 @@
3
import shutil
4
import sys
5
import traceback
6
+import warnings
7
from datetime import datetime
8
from importlib import import_module
9
from pathlib import Path
@@ -277,6 +278,8 @@ def load_abilities(settings: Settings) -> set:
277
278
ability_module = import_module(ability_module_name)
279
ability_class = getattr(ability_module, ability_class_name)
280
ability_objects_set.add(ability_class())
- assert len(ability_objects_set), "No Ability classes were provided the " \
281
- "ABILITIES list in settings.py"
+
282
+ if not len(ability_objects_set):
283
+ warnings.warn("There are no ability classes loaded - "
284
+ "your app will not have any replies.")
285
return ability_objects_set
0 commit comments