aboutsummaryrefslogtreecommitdiff
path: root/examples/edits.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/edits.py')
-rw-r--r--examples/edits.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/edits.py b/examples/edits.py
index e8233bbb..cb07dc6b 100644
--- a/examples/edits.py
+++ b/examples/edits.py
@@ -4,6 +4,10 @@ import time
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!')