summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layman/db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/db.py b/layman/db.py
index d9a558e..bd58cd6 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -329,7 +329,7 @@ class RemoteDB(DbBase):
else:
timestamp = None
except urllib2.HTTPError, e:
- if e.getcode() == 304:
+ if e.code == 304:
self.output.info('Remote list already up to date: %s'
% url, 4)
self.output.info('Last-modified: %s' % timestamp, 4)