Fix python3 migration bug - #185
Conversation
…would evaluate to False rather than a ValueError. Manifested when openning another user's user folders
0717610 to
2b01190
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #185 +/- ##
===========================================
+ Coverage 0 32.55% +32.55%
===========================================
Files 0 68 +68
Lines 0 7692 +7692
===========================================
+ Hits 0 2504 +2504
- Misses 0 5188 +5188
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hi @JacobTerritory, thanks for your contribution. Could you provide more information about the problems you are trying to fix here, please? |
|
Apologies, we forked the repository to add some additional features which I didn't mean to push back. However, the latest commit here, to In python 2.7, NoneType < Int would evaluate to True, but in python 3.x it raises a TypeError. So we must check for NoneType before evaluating the if condition. |
|
Hi @JacobTerritory, thanks for answering my questions. I have a couple of follow up questions. Regarding the additional feature, would you be able to remove them from this PR, please? About the Python 3 regression, do you have a way to reproduce this issue? I mean, I agree with the logic and your explaination. But it would be easier for us to have clear reproduction steps so we can mark this as a regression and prioritize it. Then, last point, the CI reports issues with code styling. Could you run pre-commit locally to fix it please and then push the changes? Thanks 🙏 |
|
I'm not sure on exact reliable reproduction steps, because this is obviously not a common issue, otherwise it would have been flagged years ago. For us, it's happening whenever an artist tried opening a scene file at the project level, from another artists user folder other than their own. |
|
I didn't want to modify this branch on our fork, so I've instead created a new branch, and dropped the other 2 commits. I've submitted another PR here. (I don't think I have permission to change the branch on this PR) |
|
Thanks @JacobTerritory, can we close this PR then? |
No description provided.