Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahaja committed Apr 15, 2014
2 parents cea1c5d + f05c8e0 commit a1f8b60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions psdash/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def add_available(self, filename):
filename = filename.decode("utf-8")
f = open(filename)
f.close()
except IOError, e:
except IOError as e:
raise LogError("Could not read log file '%s' (%s)" % (filename, e))

logger.debug("Adding log file %s", filename)
Expand All @@ -158,7 +158,7 @@ def add_patterns(self, patterns):
for log_file in glob2.iglob(p):
try:
self.add_available(log_file)
except LogError, e:
except LogError as e:
logger.warning(e)

logger.info("Added %d log file(s)", len(self.available))
Expand Down
2 changes: 1 addition & 1 deletion psdash/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def view_log():
log = logs.get(filename, key=session.get("client_id"))
log.set_tail_position()
content = log.read()
print log.fp.tell()
print(log.fp.tell())
except KeyError:
return render_template("error.html", error="Only files passed through args are allowed."), 401

Expand Down

0 comments on commit a1f8b60

Please sign in to comment.