I can find the Symbols in my Portfolio, but I'm unable to print the string of the Symbol to my Log file.

What's wrong with this code?

                      if hasattr(self, "Portfolio"):
                            self.Log("Portfolio object DOES exist")
                            try:
                                for i in self.Portfolio:
                                    if hasattr(i,"Value"):
                                        self.Log("the object has a Value")
                                        if hasattr(i.Value,"Symbol"):
                                            self.Log("the object.Value has a Symbol")
                                            self.Log(i.Value.Symbol  ,  " is in porfolio" )
                            except:
                                self.Log('line 113 An unknown error occurred trying to access  self.Portfolio.' +  str(sys.exc_info()[0]) )
                                quit                             
 

Author