Skip to content

Commit

Permalink
fix: resolved mypy issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Almas-Ali committed Oct 29, 2024
1 parent a03b430 commit 496475f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,10 @@ def visit_ImportNode(self, node: ImportNode, context: Context) -> RTResult[Value
docs = script.split('"')[1]
except IndexError:
docs = ""

if docs == "":
docs: str = "[No Description]"
except Exception as e:
return RTResult[Value]().failure(
RTError(node.pos_start, node.pos_end, "Failed to load script docs\n" + str(e), exec_ctx)
)

except Exception as e:
return RTResult[Value]().failure(
Expand Down

0 comments on commit 496475f

Please sign in to comment.