Browse Source

More adaptation to pep-3110

oz123 10 years ago
parent
commit
8b68aa3e73
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pwman/ui/mac.py

+ 2 - 2
pwman/ui/mac.py

@@ -44,7 +44,7 @@ class PwmanCliMac(PwmanCli):
                 node[0].get_username(), node[0].get_url())
             time.sleep(10)
             tools.text_to_clipboards("")
-        except Exception, e:
+        except Exception as e:
             self.error(e)
 
     def do_cp(self, args):
@@ -62,7 +62,7 @@ class PwmanCliMac(PwmanCli):
             node = self._db.getnodes(ids)
             url = node[0].get_url()
             tools.open_url(url, macosx=True)
-        except Exception, e:
+        except Exception as e:
             self.error(e)
 
     def do_o(self, args):