@@ -175,10 +175,10 @@ def access():
175175 "password" : str (client_details ["password" ]),
176176 }
177177 vnc_auth_token = create_access_token (identity = user_id , additional_claims = additional_claims )
178- auth_url = f"https:// { client_details ['server' ]} ?auth={ vnc_auth_token } "
178+ auth_url = f"{ client_details ['server' ]} ?auth={ vnc_auth_token } "
179179 else :
180180 auth_url = (
181- f"https:// { client_details ['server' ]} ?"
181+ f"{ client_details ['server' ]} ?"
182182 + f"username={ client_details ['username' ]} &password={ client_details ['password' ]} &"
183183 + f"target={ client_details ['target' ]} "
184184 )
@@ -415,7 +415,7 @@ def serve_documentation_index():
415415 verify_jwt_in_request ()
416416 return send_from_directory (cfg .documentation .get ("directory" ), "index.html" )
417417 except Exception as e :
418- logger .exception ("Loading documentation failed" )
418+ logger .exception (f "Loading exercises from { cfg . documentation . get ( 'directory' ) } failed" )
419419 abort (e .code )
420420
421421
@@ -426,7 +426,7 @@ def serve_documentation(path):
426426 verify_jwt_in_request ()
427427 return send_from_directory (cfg .documentation .get ("directory" ), full_path )
428428 except Exception as e :
429- logger .exception ("Loading documentation failed" )
429+ logger .exception (f "Loading exercises from { cfg . documentation . get ( 'directory' ) } failed" )
430430 abort (e .code )
431431
432432
@@ -437,7 +437,7 @@ def serve_exercises_index():
437437 verify_jwt_in_request ()
438438 return send_from_directory (cfg .exercises .get ("directory" ), "index.html" )
439439 except Exception as e :
440- logger .exception ("Loading exercises failed" )
440+ logger .exception (f "Loading exercises from { cfg . exercises . get ( 'directory' ) } failed" )
441441 abort (e .code )
442442
443443
@@ -448,7 +448,7 @@ def serve_exercises(path):
448448 verify_jwt_in_request ()
449449 return send_from_directory (cfg .exercises .get ("directory" ), full_path )
450450 except Exception as e :
451- logger .exception ("Loading exercises failed" )
451+ logger .exception (f "Loading exercises from { cfg . exercises . get ( 'directory' ) } failed" )
452452 abort (e .code )
453453
454454
0 commit comments