Skip to content

Commit 636fe98

Browse files
committed
[mythic] add a check to get return the correct output
1 parent a63de55 commit 636fe98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mythic/mythic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ async def get_uploaded_file_by_name(
16171617
output = await mythic_utilities.graphql_post(
16181618
mythic=mythic, query=file_query,
16191619
)
1620-
return output["filemeta"]
1620+
return output["filemeta"][0] if output["filemeta"] else {}
16211621

16221622

16231623
async def update_file_comment(

0 commit comments

Comments
 (0)