except:
pass
if 'vib' in p and p['vib']:
- set_vibrate(200,400,1800)
+ ptn = p['vib'].split()
+ if len(ptn) == 3 and ptn[0].isdigit and ptn[1].isdigit and ptn[2].isdigit:
+ set_vibrate(int(ptn[0]), int(ptn[1]), int(ptn[2]))
+ else:
+ set_vibrate(200,400,1800)
return n
class SetAlerts: