Answer the question
In order to leave comments, you need to log in
UnboundLocalError: local variable 'metawallet' referenced before assignment. What to do?
Here is a code snippet:
def get_metawallet(self, user_id):
with self.connection:
result = self.cursor.execute("SELECT `wallet` FROM `users` WHERE `user_id` = ?", (user_id,)).fetchall()
for row in result:
metawallet = str(row[0])
return metawallet
Answer the question
In order to leave comments, you need to log in
I googled everything I could and couldn't find it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question