Skip to content
Snippets Groups Projects
Commit d3a94293 authored by Ximin Luo's avatar Ximin Luo
Browse files

rdata: don't break if the .rdx isn't present

parent 4d313125
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,11 @@ def ensure_archive_rdx(f):
assert bname.endswith(".rdb")
rdx_name = f.name[:-4] + ".rdx"
rdx_bname = os.path.basename(rdx_name)
rdx_path = f.container.get_member(rdx_name).path
try:
rdx_path = f.container.get_member(rdx_name).path
except KeyError:
return f.path
# R will fail, diffoscope will report the error and continue
shutil.copy(f.path, f.path + ".rdb")
shutil.copy(rdx_path, f.path + ".rdx")
return f.path + ".rdb"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment