Skip to content

Commit

Permalink
Update hackernews_cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfer0x80 authored Jan 30, 2022
1 parent 861cc76 commit 2380b1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hackernews_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def fetch_api(top_news):
fp.write(data)
except:
sys.stderr.write("[!] Error writting to tempfile\n")
continue
new_data = list()
for line in data.split("\n"):
if line != "":
Expand All @@ -182,7 +181,7 @@ def show_read(data, read, top_news):
subprocess.call(cmd)
except:
sys.stderr.write("[!] Error calling subprocess\n")
continue


if __name__ == '__main__':
top_news = "/tmp/hackernews_cli.txt"
Expand Down

0 comments on commit 2380b1a

Please sign in to comment.