~m4v/+junk/Urldb

« back to all changes in this revision

Viewing changes to Urldb/plugin.py

  • Committer: Elián Hanisch
  • Date: 2010-08-25 23:41:39 UTC
  • Revision ID: lambdae2@gmail.com-20100825234139-lida6lw4b331a49h
I don't know how to get this right, maybe this?

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        try:
131
131
            message = unicode(msg.args[1], 'utf-8')
132
132
        except:
133
 
            self.log.warning('Failed to decode: %s' %msg.args[1])
134
 
            return
 
133
            try:
 
134
                message = unicode(msg.args[1]))
 
135
            except:
 
136
                self.log.warning('Failed to decode: %s' %msg.args[1])
 
137
                return
135
138
        #self.log.debug(message)
136
139
        match = urlre.findall(message)
137
140
        if not match: