• 
      

    Work around a Perforce error regression in p4python 2024.1.2625398.

    Review Request #19 — Created Nov. 26, 2026 and updated

    Information

    Review Board
    07ba5a2...

    Reviewers

    The recently-released p4python 2024.1.2625398 changed error handling to
    separate out errors, warnings, and raw results. During `__str__`, it
    prioritizes errors, then warnings, and then the raw value, depending on
    what state is available. Unfortunately, they don't always set each of
    these in the constructor, leading to `AttributeError`s being raised.
    
    We now check for this and fall back to grabbing the raw value, which is
    what we were implicitly checking in prior releases.
    
    Testing Done:
    Unit tests pass with the new build of p4python.
    
    Reviewed at https://reviews.reviewboard.org/r/14080/