コード例 #1
0
ファイル: TUTORIAL.py プロジェクト: juanchodepisa/sbtk
                
                
                FOO.text("""
                Done! Please check your OGS mail.""",
                """
                So, I hope this helped explain a bit how the whole system works. \
                I'll have more examples for you in the future.""", end = "")
        
        except HTTPError as e:
            FOO.text("""
            Hmmmmm, your request was met with an error:
            ERROR {error.code}: {error.reason}
            
            This is odd because it normally works. I'll refresh your credentials.""".format(error = e))
            try:
                id_card.refresh_auth()
                FOO.text("""Well, it seems that worked""", end = "")
            except (HTTPError, URLError):
                FOO.text("""No luck, it must be something else.""", end = "")
            FOO.yn_question("Do you want to try again?")
        except URLError as e:
            FOO.text("""
            Oh snap! The internet just tricked us buddy!
            
            I received this error:
            {error}
            
            Please check your connection.""".format(error = e))
            FOO.yn_question("Do you want to try again?")