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 c5a3949 commit 6f60e1fCopy full SHA for 6f60e1f
interpreter/core/computer/skills/skills.py
@@ -49,7 +49,7 @@ def import_skills(self):
49
50
output = self.computer.run("python", code_to_run)
51
52
- if type(output) == str and "traceback" in output.lower():
+ if "traceback" in str(output).lower():
53
# Import them individually
54
for file in glob.glob(os.path.join(self.path, "*.py")):
55
with open(file, "r") as f:
@@ -60,7 +60,7 @@ def import_skills(self):
60
61
62
63
64
print(
65
f"Skill at {file} might be broken— it produces a traceback when run."
66
)
0 commit comments