[gnome-clocks] Use modern "except" syntax
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Use modern "except" syntax
- Date: Thu, 15 Nov 2012 20:45:22 +0000 (UTC)
commit 3a2cc1def1ed33b1fc347c1b1936c9a05d781b1a
Author: Paolo Borelli <pborelli gnome org>
Date: Thu Nov 15 21:44:11 2012 +0100
Use modern "except" syntax
gnomeclocks/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/utils.py b/gnomeclocks/utils.py
index 6e4255d..8607821 100644
--- a/gnomeclocks/utils.py
+++ b/gnomeclocks/utils.py
@@ -118,7 +118,7 @@ class Alert:
def __init__(self, soundid, msg, callback):
try:
self.canberra = pycanberra.Canberra()
- except Exception, e:
+ except Exception as e:
print "Sound will not be available: ", e
self.canberra = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]