-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ttype referenced before assignment #97
Comments
From that code snippet, I'd assume that you're not assigning anything to ttype prior to |
Yup, that's the problem. |
Happy to help. Please close the issue yourself by pressing the close issue button, as the developer of this plugin appears to be inactive (no commits since two years ago, no resolved issues since around the same time etc.) |
I'll close it when it's fixed. |
Can you program in python and fix it yourself? If not then it wont get fixed because, as per my previous comment, the developer has been inactive for around 2 years. |
I could probably fix it if you're unable to if it's a pressing issue |
Then I'll wait until he rises again. :-) |
if rel_p.startswith('http'):
img = rel_p
local_filename, headers = urllib.request.urlretrieve(rel_p)
size = ImageHandler.get_image_size(local_filename)
if size:
w, h, ttype = size
FMT = u'<img src="data:image/{}" class="centerImage" {}>'
img = ttype + ";base64," + get_as_base64(img) Fixed. |
OK I'll close the issue when it's merged. |
The text was updated successfully, but these errors were encountered: