File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 6
6
7
7
setup (
8
8
name = 'python-vipaccess' ,
9
- version = '0.1.2 ' ,
9
+ version = '0.1.3 ' ,
10
10
description = "A free software implementation of Symantec's VIP Access application and protocol" ,
11
11
long_description = readme ,
12
12
url = 'https://github.com/cyrozap/python-vipaccess' ,
Original file line number Diff line number Diff line change @@ -225,19 +225,16 @@ def generate_otp_uri(token_id, secret):
225
225
226
226
def generate_qr_code (uri ):
227
227
'''Generate a QR code from the OTP URI.'''
228
- try :
229
- qr = qrcode .QRCode (
230
- version = 1 ,
231
- error_correction = qrcode .constants .ERROR_CORRECT_L ,
232
- box_size = 10 ,
233
- border = 4
234
- )
235
- qr .add_data (uri )
236
- qr .make (fit = True )
237
- im = qr .make_image ()
238
- return im
239
- except :
240
- return False
228
+ qr = qrcode .QRCode (
229
+ version = 1 ,
230
+ error_correction = qrcode .constants .ERROR_CORRECT_L ,
231
+ box_size = 10 ,
232
+ border = 4
233
+ )
234
+ qr .add_data (uri )
235
+ qr .make (fit = True )
236
+ im = qr .make_image ()
237
+ return im
241
238
242
239
def check_token (token_id , secret ):
243
240
'''Check the validity of the generated token.'''
You can’t perform that action at this time.
0 commit comments