Jump to content

Flask app not updating, despite updated code reflecting in log files


advaithm

Recommended Posts

Note: This is specific to HelioHost.

There was a NameError in some code on line 87.

Line 87 of my code was: return MySQLdb.connect(**kwargs)

I modified it to: return mysql.connector.connect(**kwargs)

mysql.connector has been imported in the file. Hence, no NameError should show up. Yet, the error still shows up in the logs. In the wiki it is mentioned that it takes several hours to purge the cache. However, in my case, the log files show the updated code but still have the same error. For example:

return mysql.connector.connect(**kwargs)
NameError: 'MySQLdb' is not defined

What is happening here? Is it a caching issue, or something which I should do on my side?

(I can share the code if required)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...