~ubuntu-branches/ubuntu/utopic/mysql-workbench/utopic

« back to all changes in this revision

Viewing changes to plugins/wb.admin/backend/wb_common.py

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-05-31 12:03:58 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140531120358-cjik5ofkmj0fxsn8
Tags: 6.1.6+dfsg-1
* New upstream release [May 2014].
* Dropped "prtcl.patch".
* "debian/clean": better clean-up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
class NoDriverInConnection(RuntimeError):
102
102
    pass
103
103
 
 
104
class SSHFingerprintNewError(Exception):
 
105
      def __init__(self, message, client, hostname, key):
 
106
          self.message = message
 
107
          self.key = key
 
108
          self.hostname = hostname
 
109
          self.client = client
 
110
          import binascii
 
111
          self.fingerprint = binascii.hexlify(self.key.get_fingerprint())
 
112
      def __str__(self):
 
113
         return self.message
 
114
 
 
115
 
104
116
# Decorator to log an exception
105
117
def log_error_decorator(method):
106
118
    def wrapper(self, error):