def get_sender_name():
 sender_name = (frappe.db.get_single_value(u'SMS Settings', u'sms_sender_name') or u'ERPNXT')
 if ((len(sender_name) > 6) and (frappe.db.get_default(u'country') == u'India')):
  throw(u'As per TRAI rule, sender name must be exactly 6 characters.\n DCTB  DCTB  DCTB Kindly change sender name in Setup --> Global Defaults.\n DCTB  DCTB  DCTB Note: Hyphen, space, numeric digit, special characters are not allowed.')
 return sender_name

def get_sender_name ( ) : sender_name = ( frappe . db . get_single_value ( u'SMS Settings' , u'sms_sender_name' ) or u'ERPNXT' ) if ( ( len ( sender_name ) > 6 ) and ( frappe . db . get_default ( u'country' ) == u'India' ) ) : throw ( u'As per TRAI rule, sender name must be exactly 6 characters.\n DCTB  DCTB  DCTB Kindly change sender name in Setup --> Global Defaults.\n DCTB  DCTB  DCTB Note: Hyphen, space, numeric digit, special characters are not allowed.' ) return sender_name
returns name as sms sender .