[web2py] Re: Error in app: cannot unpack non-iterable NoneType object

2019-06-22 Thread Константин Комков
*Val K*, I know that & is betwice operator) I can not return ('My message', oper and abit) becouse string 'My message' is different like: if ((oper==True) & (abit==True)): return ('My message 1',True) elif ((oper==True) & (abit==False)): return ('My message 2',False) elif ((ope

[web2py] Re: Error in app: cannot unpack non-iterable NoneType object

2019-06-20 Thread Val K
1. & - is bitwise operator (just in case) 2. why not just return ('My message', oper and abit) On Thursday, June 20, 2019 at 8:30:30 PM UTC+3, Константин Комков wrote: > > I need add more information. Can error may be caused if my function don't > have one condition: > def send_application(msg,e

[web2py] Re: Error in app: cannot unpack non-iterable NoneType object

2019-06-20 Thread Константин Комков
I need add more information. Can error may be caused if my function don't have one condition: def send_application(msg,entrant_XML): #Letter for operator try: oper = mail.send('opera...@domen.ru','Theme','Letter text...',attachments = files) except Exception: oper = Fa