Checking cleanup.

pull/15/head
Jussi Pakkanen 11 years ago
parent 7d1999dc09
commit b9a2d0c10f
  1. 5
      build.py

@ -350,13 +350,12 @@ class Generator():
if hasattr(args[0], 'held_object'): if hasattr(args[0], 'held_object'):
exe = args[0].held_object exe = args[0].held_object
if not isinstance(exe, Executable):
raise InvalidArguments('First generator argument must be an executable.')
elif hasattr(args[0], 'ep'): elif hasattr(args[0], 'ep'):
exe = args[0].ep exe = args[0].ep
else: else:
print(args[0])
raise InvalidArguments('First generator argument must be an executable object.') raise InvalidArguments('First generator argument must be an executable object.')
if not isinstance(exe, Executable):
raise InvalidArguments('First generator argument must be an executable.')
self.exe = exe self.exe = exe
self.process_kwargs(kwargs) self.process_kwargs(kwargs)

Loading…
Cancel
Save