aboutsummaryrefslogtreecommitdiff
path: root/export.py
diff options
context:
space:
mode:
Diffstat (limited to 'export.py')
-rw-r--r--export.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/export.py b/export.py
index d0221cd..bf45e5e 100644
--- a/export.py
+++ b/export.py
@@ -294,7 +294,11 @@ def export_srcpkgs(data, name, srcpkg_names):
res.extend(list(extract_resources(pkg_cps)))
pkg_cl = data.cl[data.cl['_srcpkg'] == srcpkg]
- cl_date = pkg_cl['date'][0]
+ cl_date = pkg_cl['date']
+ # avoid rare bad index error:
+ if cl_date.empty:
+ continue
+ cl_date = cl_date[0]
cl_uploader = pkg_cl['author'][0]
for template in srcpkg_extract_licenses(
pkg_cps, pkg_cpf, pkg_licenses, cl_date, cl_uploader):
@@ -413,4 +417,3 @@ def main():
if __name__ == '__main__':
main()
-