Skip to content

Commit 5da79d3

Browse files
committed
Linux: better error display
1 parent 660037c commit 5da79d3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = '2.0.11'
62+
version = '2.0.12'
6363
# The full version, including alpha/beta/rc tags.
6464
release = 'latest'
6565

mss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .exception import ScreenshotError
1616
from .factory import mss
1717

18-
__version__ = '2.0.11'
18+
__version__ = '2.0.12'
1919
__author__ = "Mickaël 'Tiger-222' Schoentgen"
2020
__copyright__ = '''
2121
Copyright (c) 2013-2016, Mickaël 'Tiger-222' Schoentgen

mss/linux.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def __init__(self, display=None):
125125
try:
126126
assert self.display.contents
127127
except ValueError:
128-
raise ScreenshotError('Cannot open display "{0}".'.format(display))
128+
raise ScreenshotError(
129+
'Cannot open display "{0!s}".'.format(display))
129130
self.root = self.xlib.XDefaultRootWindow(
130131
self.display, self.xlib.XDefaultScreen(self.display))
131132

0 commit comments

Comments
 (0)