summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/management/commands/reporead.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index bf3e7a0..0735582 100755
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -144,7 +144,10 @@ def populate_pkg(dbpkg, repopkg, timestamp=None):
try:
dbpkg.build_date = datetime.utcfromtimestamp(int(repopkg.builddate))
except:
- dbpkg.build_date = datetime.strptime(repopkg.builddate, '%a %b %d %H:%M:%S %Y')
+ try:
+ dbpkg.build_date = datetime.strptime(repopkg.builddate, '%a %b %d %H:%M:%S %Y')
+ except:
+ pass
dbpkg.needupdate = False
if timestamp: