carderne/signal-export

Contacts with special characters in the name like "()" break the export process even if escaped

Closed this issue · 2 comments

This is on the latest Docker image as of: 18 Mar 2022


Traceback (most recent call last):
File "/usr/local/bin/sigexport", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.9/site-packages/sigexport/main.py", line 652, in cli
run(main)
File "/usr/local/lib/python3.9/site-packages/typer/main.py", line 864, in run
app()
File "/usr/local/lib/python3.9/site-packages/typer/main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/typer/main.py", line 500, in wrapper
return callback(**use_params) # type: ignore
File "/usr/local/lib/python3.9/site-packages/sigexport/main.py", line 637, in main
copy_attachments(src, dest, convos, contacts)
File "/usr/local/lib/python3.9/site-packages/sigexport/main.py", line 70, in copy_attachments
file_name += "." + att["contentType"].split("/")[1]
IndexError: list index out of range

Your issue title doesn't match the traceback that you posted...

The latter should now be fixed by 743e4ba

(You may need to wait for the images to rebuild, and add --pull=always to your docker run.)

I realized the error was from elsewhere after I posted

Thank you