File "/usr/lib/python3/dist-packages/electrum/gui/qt/transaction_dialog.py", line 223, in export
    with open(fileName, "w+") as f: