#8351 json dump errors after starting to use io.open

v1.13.0
closed
None
General
nobody
2021-05-17
2020-02-20
No
Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/tasks/export_tasks.py", line 106, in export
    app.bulk_export(f, export_path, with_attachments)
  File "/var/local/allura/ForgeTracker/forgetracker/tracker_main.py", line 496, in bulk_export
    json.dump(ticket, f, cls=GenericClass, indent=2)
  File "/usr/lib64/python2.7/json/__init__.py", line 190, in dump
    fp.write(chunk)
TypeError: must be unicode, not str

Discussion

  • Dave Brondsema

    Dave Brondsema - 2020-02-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     ```
     Traceback (most recent call last):
       File "/var/local/allura/Allura/allura/tasks/export_tasks.py", line 106, in export
    
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2020-02-20

    db/8351

     
  • Kenton Taylor - 2020-02-21
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2021-05-17
    • Milestone: unreleased --> v1.13.0
     

Log in to post a comment.