Skip to content

Commit

Permalink
Format the response for a succesful upload via fiocli as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jhodges10 committed Jun 11, 2024
1 parent 20786c7 commit 5255b36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frameioclient/fiocli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import os
import sys
import argparse
Expand Down Expand Up @@ -83,7 +84,10 @@ def main():
args.target[0], args.destination[0]
)
else:
return client.assets.upload(args.destination[0], args.target[0])
try:
return json.dumps(client.assets.upload(args.destination[0], args.target[0]))
except Exception as e:
print(e)
else:
print("No destination supplied")
else:
Expand Down

0 comments on commit 5255b36

Please sign in to comment.