diff --git a/.github/workflows/draft_release.yml b/.github/workflows/draft_release.yml index 0d5a371a..83a05164 100644 --- a/.github/workflows/draft_release.yml +++ b/.github/workflows/draft_release.yml @@ -52,9 +52,7 @@ jobs: - name: Test starting pympress and quitting from the command line if: always() run: | - pympress & pympress --quit - wait %1 - name: Check the log has been created from the previous step if: always() diff --git a/pympress/ui.py b/pympress/ui.py index 3c438625..c0628738 100644 --- a/pympress/ui.py +++ b/pympress/ui.py @@ -2004,9 +2004,8 @@ def lookup_monitors(display, *windows): the best monitor areas for primary and non-primary monitors """ # Helpful for debugging - name = [mon.get_manufacturer() + ' ' + mon.get_model() for mon in ( - display.get_monitor(n) for n in range(display.get_n_monitors()) - )] + name = ['{} {}'.format(mon.get_manufacturer() or 'Unknown manufacturer', mon.get_model() or 'Unknown model') + for mon in (display.get_monitor(n) for n in range(display.get_n_monitors()))] all_geom = [ScreenArea(display.get_monitor(n).get_geometry(), name[n]) for n in range(display.get_n_monitors())] # Remove duplicate monitors (“mirrored”)