diff options
| -rwxr-xr-x | bin/rotation_test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/rotation_test b/bin/rotation_test index 8fcf727..5187401 100755 --- a/bin/rotation_test +++ b/bin/rotation_test @@ -45,8 +45,9 @@ def main(): for rot in rotations: try: status = rotate_screen(rotations[rot]) - except(xrandr.RRError, xrandr.UnsupportedRRError) as error: + except (xrandr.RRError, xrandr.UnsupportedRRError) as exc: status = 1 + error = exc else: error = 'N/A' # Collect the status and the error message |
