summaryrefslogtreecommitdiff
path: root/portato/gui/session.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/gui/session.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/portato/gui/session.py b/portato/gui/session.py
index a37cd85..1eca248 100644
--- a/portato/gui/session.py
+++ b/portato/gui/session.py
@@ -18,16 +18,16 @@ SESSION_VERSION = 1
class SessionException (Exception):
- error = _("Version mismatch.")
- def __init__ (self, got, expected):
- self.got = got
- self.expected = expected
+ error = _("Version mismatch.")
+ def __init__ (self, got, expected):
+ self.got = got
+ self.expected = expected
- def __str__ (self):
- return "%s %s" % (self.error, (_("Got '%d' - expected '%d'.") % (self.got, self.expected)))
+ def __str__ (self):
+ return "%s %s" % (self.error, (_("Got '%d' - expected '%d'.") % (self.got, self.expected)))
class OldSessionException (SessionException):
- error = _("Current session format is too old.")
+ error = _("Current session format is too old.")
class NewSessionException (SessionException):
- error = _("Current session format is newer than this version supports.")
+ error = _("Current session format is newer than this version supports.")