diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-18 10:38:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-18 10:38:54 +0300 |
commit | b236653f8a4c0ae6a46369c6ff420d9f4a619808 (patch) | |
tree | bcd66929b1682ed358fb590641f0b919add2e72b /intern | |
parent | dfb963c70df515213c452094c20c83720bc017ee (diff) |
Fix error in grease pencil flip color operator
- Used try/except instead of a poll function.
- The error case referenced a non-existent error handling module.
Prefer poll functions over exception handling where possible,
also having an operators logic in a try block isn't good practice
as it can hide more serious errors in the code.
Note that duplicate pencil settings access should be moved into a
utility function. This can be part of a separate cleanup.
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions