File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ def main():
33
33
print ("No private_key.pem file found." )
34
34
answer = None
35
35
while answer not in ['y' , 'n' ]:
36
- answer = input ("Do you want me to create one for you? (Y/n)" )
36
+ answer = raw_input ("Do you want me to create one for you? (Y/n)" )
37
37
if not answer :
38
38
answer = 'y'
39
39
answer = answer .lower ()[0 ]
40
40
if answer == 'n' :
41
41
print ("Sorry, can't do much for you then." )
42
- exit
42
+ exit ( 1 )
43
43
print ("Generating private_key.pem" )
44
44
Vapid ().save_key ('private_key.pem' )
45
45
vapid = Vapid .from_file ('private_key.pem' )
@@ -49,13 +49,13 @@ def main():
49
49
"the developer dashboard." )
50
50
answer = None
51
51
while answer not in ['y' , 'n' ]:
52
- answer = input ("Do you want me to create one for you? (Y/n)" )
52
+ answer = raw_input ("Do you want me to create one for you? (Y/n)" )
53
53
if not answer :
54
54
answer = 'y'
55
55
answer = answer .lower ()[0 ]
56
56
if answer == 'n' :
57
57
print ("Exiting..." )
58
- exit
58
+ exit ( 0 )
59
59
print ("Generating public_key.pem" )
60
60
vapid .save_public_key ('public_key.pem' )
61
61
claim_file = args .sign
@@ -86,7 +86,7 @@ def main():
86
86
87
87
{"sub": "mailto:[email protected] "}
88
88
""" )
89
- exit
89
+ exit ( 1 )
90
90
try :
91
91
claims = json .loads (open (claim_file ).read ())
92
92
result .update (vapid .sign (claims ))
You can’t perform that action at this time.
0 commit comments