diff sat/plugins/plugin_misc_merge_requests.py @ 3875:a0666f17f300

plugin merge-requests: fix `await` use on blocking method
author Goffi <goffi@goffi.org>
date Tue, 23 Aug 2022 13:00:07 +0200
parents 5f65f4e9f8cb
children 524856bd7b19
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_merge_requests.py	Fri Jul 22 17:40:03 2022 +0200
+++ b/sat/plugins/plugin_misc_merge_requests.py	Tue Aug 23 13:00:07 2022 +0200
@@ -269,7 +269,7 @@
                                              'change to send?'))
 
             if not values.get('title') or not values.get('body'):
-                patches = await handler.parse(data, values.get(FIELD_DATA_TYPE))
+                patches = handler.parse(data, values.get(FIELD_DATA_TYPE))
                 commits_msg = patches[-1][self.META_COMMIT_MSG]
                 msg_lines = commits_msg.splitlines()
                 if not values.get('title'):