[Blender_Kitsu] Pub_Edit_Rev: Fix frame_start not found on server #14

Merged
Nick Alberelli merged 1 commits from :fix/publish-edit-revision-frame-start-optional into master 2023-04-18 03:37:46 +02:00
Member

Closes: TinyNick/blender-studio-tools#37

Issue

If Kitsu server doesn't contain frame_start key within Edit [Blender_Kitsu] returns following

Python: Traceback (most recent call last):
  File "C:\Users\{user}\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blender_kitsu\sqe\ops.py", line 2463, in invoke
    self.frame_start = server_frame_start
  File "c:\Users\{user}\Blender-Studio\Development\Blender-Builds\blender-git\build_windows_x64_vc16_Release\bin\Release\3.6\scripts\modules\bpy_types.py", line 822, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: KITSU_OT_vse_publish_edit_revision.frame_start expected an int type, not NoneType

Solution

  • Add check if server_frame_start is int before invoke
Closes: https://projects.blender.org/TinyNick/blender-studio-tools/issues/37 # Issue If Kitsu server doesn't contain `frame_start` key within Edit [Blender_Kitsu] returns following ```python Python: Traceback (most recent call last): File "C:\Users\{user}\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blender_kitsu\sqe\ops.py", line 2463, in invoke self.frame_start = server_frame_start File "c:\Users\{user}\Blender-Studio\Development\Blender-Builds\blender-git\build_windows_x64_vc16_Release\bin\Release\3.6\scripts\modules\bpy_types.py", line 822, in __setattr__ return setattr(properties, attr, value) TypeError: bpy_struct: item.attr = val: KITSU_OT_vse_publish_edit_revision.frame_start expected an int type, not NoneType ``` # Solution - [x] Add check if `server_frame_start` is int before invoke
Nick Alberelli force-pushed fix/publish-edit-revision-frame-start-optional from 08fff75c42 to a159463184 2023-04-17 23:22:28 +02:00 Compare
Nick Alberelli changed title from WIP: [Blender_Kitsu] Pub_Edit_Rev: Fix frame_start not found on server to [Blender_Kitsu] Pub_Edit_Rev: Fix frame_start not found on server 2023-04-18 03:26:44 +02:00
Nick Alberelli changed title from [Blender_Kitsu] Pub_Edit_Rev: Fix frame_start not found on server to [Blender_Kitsu] Pub_Edit_Rev: Fix `frame_start` not found on server 2023-04-18 03:27:05 +02:00
Nick Alberelli merged commit 0076748592 into master 2023-04-18 03:37:46 +02:00
Nick Alberelli deleted branch fix/publish-edit-revision-frame-start-optional 2023-04-18 03:37:46 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#14
No description provided.