TypeError: unsupported operand types for +: 'NoneType' and 'str'

A

aurfalien

Hi all,

I tried to make the subject as specific as possible rather then just
"help me" or "its broke" or "my server is down", etc...

So please excuse me if its too specific as I wasn't trying to be
ridiculous.

So I've been handed some one else's work to fix.

While its fun and all, I haven't had much luck in debugging this
particular issue.

The error I get;

File "myscript.py", Line 18, in ?
projectpath = ourHome+"/etc/TEMPLATE"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Python 2.4.3

I've read were when passing a string to exec may need to end with a '\n'

I've tried a few diff variations on the below line 18 w/o luck. Any
one mind helping out a bratha from anatha ... planet that is?

line 18;

projectpath = ourHome+"/etc/TEMPLATE"

line 17;
ourHome = os.environ.get('some_env')


Thanks in advance,
- aurf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top