1 |
commit: 4e781a58ea922911d09287e95b0c666216212e4a |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 1 21:52:58 2012 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Apr 1 21:52:58 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=4e781a58 |
7 |
|
8 |
fix news exception for py2.5 comaptability. |
9 |
|
10 |
--- |
11 |
layman/api.py | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/layman/api.py b/layman/api.py |
15 |
index 2f6c183..7b3111f 100755 |
16 |
--- a/layman/api.py |
17 |
+++ b/layman/api.py |
18 |
@@ -582,7 +582,7 @@ class LaymanAPI(object): |
19 |
elif self.config['news_reporter'] == 'pkgcore': |
20 |
# pkgcore is not yet capable |
21 |
return |
22 |
- except Exception as err: |
23 |
+ except Exception, err: |
24 |
msg = "update_news() failed running %s news reporter function\n" +\ |
25 |
"Error was; %s" |
26 |
self._error(msg % (self.config['news_reporter'], err)) |