Skip to content

Commit

Permalink
fix #50 to return empty string or empty list dependent on outFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
ryran committed Nov 24, 2016
1 parent a485e5f commit eb74965
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rhsda.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,10 @@ def mget_cves(self, cves, numThreads=0, onlyCount=False, outFormat='plaintext',
elif not isinstance(cves, list):
raise ValueError("Invalid 'cves=' argument input; must be list, string, or file obj")
if not len(cves):
return []
if outFormat in ['plaintext', 'jsonpretty']:
return ""
else:
return []
# Configure threads
if not numThreads:
numThreads = numThreadsDefault
Expand Down

0 comments on commit eb74965

Please sign in to comment.