Skip to content

Commit

Permalink
Added makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
faebser committed Jan 10, 2016
1 parent 33e2f35 commit 94289dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

.PHONY: run
run: update pistream.py
python pistream.py


.PHONY: clean
update:
@git fetch --all
@git reset --hard origin/master
2 changes: 1 addition & 1 deletion pistream.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def init():
try:
ip_address = get_ip_address('eth0')
lcd_display.put(u"Reach me at\n{}".format(ip_address), lcd_display.GOOD)
except Exception, e:
except Exception as e:
pass # dont do anything, there will be an error in the queue anyway
for item in status:
if item['result'] is TestStatus.Error:
Expand Down

0 comments on commit 94289dc

Please sign in to comment.