def prompt_for_link(on: online.PNO_online) -> "notes": while True: address = input("Please enter the web address where the notes are located: ") notes = None try: notes = on.open_notes(address) return notes except: print("Can't connect to address, Please enter a valid address")
def prompt_for_link(on: online.PNO_online) -> 'notes': while True: address = input( 'Please enter the web address where the notes are located: ') notes = None try: notes = on.open_notes(address) return notes except: print("Can't connect to address, Please enter a valid address")