File: 0004-Exit-on-login-failure.patch

package info (click to toggle)
cloudprint 0.14-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 512 kB
  • sloc: python: 1,128; sh: 48; makefile: 16
file content (20 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: David Steele <dsteele@gmail.com>
Date: Mon, 21 Sep 2015 19:59:16 -0400
Subject: Exit on login failure

---
 cloudprint/cloudprint.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cloudprint/cloudprint.py b/cloudprint/cloudprint.py
index 6ecdc28..0e1ce4a 100755
--- a/cloudprint/cloudprint.py
+++ b/cloudprint/cloudprint.py
@@ -137,6 +137,7 @@ class CloudPrintAuth(object):
                 break
         else:
             print('The login request timedout')
+            sys.exit(-1)
 
         self.xmpp_jid = poll['xmpp_jid']
         self.email = poll['user_email']