aboutsummaryrefslogtreecommitdiff
path: root/examples/deleted.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/deleted.py')
-rw-r--r--examples/deleted.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/deleted.py b/examples/deleted.py
index 7f77e9c3..3b6b9897 100644
--- a/examples/deleted.py
+++ b/examples/deleted.py
@@ -3,6 +3,10 @@ import discord
client = discord.Client()
client.login('email', 'password')
+if not client.is_logged_in:
+ print('Logging in to Discord failed')
+ exit(1)
+
@client.event
def on_ready():
print('Connected!')