Forum Archive

When I run my script Pythonista crashes

Rizey

I am using an iPhone 7 on version 12.1.4. I tried to make a script that would tell me how much time is left in my class period and then using the notification module display it and the sound module too but when I run it Pythonista just closes. Here is my script: https://github.com/Riz3y/School-Stuff/blob/master/Period%20Time

JonB

the new notification module expects a string first argument (and apparently doesnt check this for you)

try

notification.schedule(str(timeleft),0,sound=None)

as an aside, if you just want to pop up a dialog, consider console.alert.

Rizey

Thank you for the info