Skip to content

Commit 19f65ad

Browse files
author
myname
committed
Fix exception syntax for python3
1 parent b88bfa4 commit 19f65ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

epson_printer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
__version__ = "1.11.0"
2+
__version__ = "1.12.0"
33

44
__all__ = ["epsonprinter","testpage"]
55

epson_printer/epsonprinter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class TimeoutException(Exception): pass
103103
@contextmanager
104104
def time_limit(seconds):
105105
def signal_handler(signum, frame):
106-
raise TimeoutException, "Timed out!"
106+
raise TimeoutException("Timed out!")
107107
signal.signal(signal.SIGALRM, signal_handler)
108108
signal.alarm(seconds)
109109
try:

0 commit comments

Comments
 (0)