Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1.         SQL_Class = ClientReportSQL(self.a, self.b)
  2.         the_queue.put([SQL_Class.openconnection])
  3.         the_queue.put([SQL_Class.executeSQL]) # this is a long running function that assigns SQL_Class.c
  4.  
  5.         File_Class = ClientReportFile(self.clientname, SQL_Class.c)  # next object relies on the SQL_Class.c attribute that is not ready in the main thread in time
  6.  
  7.  
  8. # returns AttributeError: 'ClientReportSQL' object has no attribute 'treaty_date'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement