~unity-lens-videos/unity-lens-video/remote-videos

« back to all changes in this revision

Viewing changes to src/unity-scope-video-remote

  • Committer: David Callé
  • Date: 2012-03-09 21:16:19 UTC
  • Revision ID: davidc@framli.eu-20120309211619-hu5gtzjiw97fwh8h
Ensure we are passing strings to Dee + catch TypeError

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
                if uri.startswith('http'):
199
199
                    # Instead of an uri, we pass a string of uri + metadata
200
200
                    model.append(uri+'lens-meta://'+title+'lens-meta://'+icon,
201
 
                    icon, 2, "text/html", title, comment, uri)
202
 
            except (KeyError):
 
201
                    icon, 2, "text/html", str(title), str(comment), str(uri))
 
202
            except (KeyError, TypeError):
203
203
                print "Malformed result, skipping."
204
204
        model.flush_revision_queue()
205
205
        if search: