diff options
author | Denis Fomin <fominde@gmail.com> | 2011-09-19 19:16:10 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2011-09-19 19:16:10 +0400 |
commit | d9a5a816de13c00e1cf4bf642f27f2a730a31bef (patch) | |
tree | d673cb81b83f54e80e1f81601836ebf572404db5 | |
parent | bb99ffc246dfb16e6bbdc4dc8c5c3bed559d9e2b (diff) |
juick.add missing return
-rw-r--r-- | juick/plugin.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/juick/plugin.py b/juick/plugin.py index 59fe35a..6cf9a81 100644 --- a/juick/plugin.py +++ b/juick/plugin.py @@ -337,6 +337,7 @@ class Base(object): img.set_from_pixbuf(pixbuf) img.show() self.textview.tv.add_child_at_anchor(img, anchor) + return else: # nick not in the db id_ = conn.connection.getAnID() @@ -408,12 +409,6 @@ class Base(object): url = 'http://i.juick.com/as/%s.png' % uid if need_check and os.path.isfile(pic_path): max_old = self.plugin.config['avatars_old'] - #req = urllib2.Request(url) - #url_handle = urllib2.urlopen(req) - #headers = url_handle.info() - #etag = headers.getheader("ETag") - #last_modified = headers.getheader("Last-Modified") - #return gtk.gdk.pixbuf_new_from_file(pic_path) if (time.time() - os.stat(pic_path).st_mtime) < max_old: return gtk.gdk.pixbuf_new_from_file(pic_path) |