Skip to content

Commit a1f8b60

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents cea1c5d + f05c8e0 commit a1f8b60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

psdash/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def add_available(self, filename):
137137
filename = filename.decode("utf-8")
138138
f = open(filename)
139139
f.close()
140-
except IOError, e:
140+
except IOError as e:
141141
raise LogError("Could not read log file '%s' (%s)" % (filename, e))
142142

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

164164
logger.info("Added %d log file(s)", len(self.available))

psdash/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def view_log():
363363
log = logs.get(filename, key=session.get("client_id"))
364364
log.set_tail_position()
365365
content = log.read()
366-
print log.fp.tell()
366+
print(log.fp.tell())
367367
except KeyError:
368368
return render_template("error.html", error="Only files passed through args are allowed."), 401
369369

0 commit comments

Comments
 (0)