Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Change log

master

* IGuest.create_session() now raises a more descriptive error if
not able to connect with a zero-length password. (@SethMichaelLarson PR #70)
* Add sys.executable-derived paths in list to check for vboxapi (@SethMichaelLarson PR #69)
* Fix IGuestProcess.execute() on Python 3.x (@SethMichaelLarson PR #58)
* Fix errors to not output on Windows platforms. (@SethMichaelLarson PR #57)
Expand Down
3 changes: 3 additions & 0 deletions virtualbox/library_ext/guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def create_session(self, user, password, domain='', session_name='pyvbox',
break
time.sleep(0.1)
else:
if len(password) == 0:
raise SystemError('GuestSession failed to start. Could be because '
'of using an empty password.')
raise SystemError("GuestSession failed to start")
if timeout_ms != 0:
# There is probably a better way to to this?
Expand Down