Double Message issue

My python is rusty

But doesn’t this block of code say if a fault occurred in reading what User2 said.
print out what in is in the vars, username and message which is still set to what User1 said.

  • User1 read fine
  • Set message to the message and username to User1
  • print username/message
  • User2 READFAULT, have an exception/AttributeError (or a UnicodeDecodeError further up the stack),
  • print username/message (still set to user1 name and message)
  • User3 read fine set message to message and username to User3
  • print username/message

username/message having been made globals and not blanked when you try to read. Shouldn’t the pass be a return or something else?

1 Like