Skip to content

'str' object has no attribute '__suppress_context__' #233

@dtolnay

Description

@dtolnay

Running offlineimap 8.0.1, it seems to have finished everything but at the very end fails with this exception:

Account sync Gmail:
 *** Finished account 'Gmail' in 11071:15
ERROR: Exceptions occurred during the run!
ERROR: 'str' object has no attribute '__suppress_context__'
ERROR: Exceptions occurred during the run!
Traceback (most recent call last):
  File "/git/offlineimap3/offlineimap/init.py", line 511, in __sync
    self.ui.terminate()
    ~~~~~~~~~~~~~~~~~^^
  File "/git/offlineimap3/offlineimap/ui/UIBase.py", line 541, in terminate
    exc_str = "".join(traceback.format_exception_only(type(exc), exc))
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/traceback.py", line 176, in format_exception_only
    te = TracebackException(type(value), value, None, compact=True)
  File "/usr/lib/python3.13/traceback.py", line 1111, in __init__
    exc_value.__suppress_context__ if exc_value is not None else False
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute '__suppress_context__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/git/offlineimap3/./offlineimap.py", line 22, in <module>
    oi.run()
    ~~~~~~^^
  File "/git/offlineimap3/offlineimap/init.py", line 110, in run
    return self.__sync(options)
           ~~~~~~~~~~~^^^^^^^^^
  File "/git/offlineimap3/offlineimap/init.py", line 517, in __sync
    self.ui.terminate()
    ~~~~~~~~~~~~~~~~~^^
  File "/git/offlineimap3/offlineimap/ui/UIBase.py", line 541, in terminate
    exc_str = "".join(traceback.format_exception_only(type(exc), exc))
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/traceback.py", line 176, in format_exception_only
    te = TracebackException(type(value), value, None, compact=True)
  File "/usr/lib/python3.13/traceback.py", line 1111, in __init__
    exc_value.__suppress_context__ if exc_value is not None else False
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute '__suppress_context__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions