Skip to content

Commit

Permalink
we may not have windows enabled, just don't log anything
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21159 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 29, 2018
1 parent 961fb29 commit 390e7e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/server/shadow/shadow_server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def do_print_screen_info(self, display, w, h):
log.info(" on display '%s' of size %ix%i", display, w, h)
else:
log.info(" on display of size %ix%i", w, h)
l = len(self._id_to_window)
try:
l = len(self._id_to_window)
except AttributeError as e:
log("no screen info: %s", e)
return
if l>1:
log.info(" with %i monitors:", l)
for window in self._id_to_window.values():
Expand Down

0 comments on commit 390e7e1

Please sign in to comment.