mirror of
https://github.com/zoriya/AnonymousGoose.git
synced 2026-05-23 10:46:31 +00:00
Making the print function return a success bool
This commit is contained in:
+6
-2
@@ -37,8 +37,12 @@ class Term:
|
||||
time.sleep(1)
|
||||
|
||||
def print(self, msg):
|
||||
with open(self.tty, "w") as file:
|
||||
file.write(msg)
|
||||
try:
|
||||
with open(self.tty, "w") as file:
|
||||
file.write(msg)
|
||||
return True
|
||||
except PermissionError:
|
||||
return False
|
||||
|
||||
def print_creepy(self, msg):
|
||||
with open(self.tty, "w") as file:
|
||||
|
||||
Reference in New Issue
Block a user