Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 8e216d0

Browse files
committed
added error message
1 parent be4568a commit 8e216d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

VAIIYA terminal.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def open_terminal():
235235

236236
#the COMMANDS directory, DO NOT REMOVE!
237237
elif text == 'commands':
238-
game.printfile("assets/text_lines/commands_lines/line_commands.txt")
238+
game.printfile("")
239239

240240

241241
#this solves the space command issue. leave blank
@@ -581,8 +581,9 @@ def printfile(txtfilepath = ""):
581581
try:
582582
with open(txtfilepath) as f: # The with keyword automatically closes the file when you are done
583583
print(f.read())
584-
except FileNotFoundError():
584+
except:
585585
print_formatted_text(HTML('<red>ERR! FILEPRINT FAILURE</red>'))
586+
586587

587588
#the game.quit() event is to make the rase systemexit look a bit better :3
588589
def quit():

0 commit comments

Comments
 (0)