Changeset 328:14339d2d46bc


Ignore:
Timestamp:
Sep 6, 2013, 12:29:44 AM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

Only add objects with actual puzzlers to the glue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/puzzle.py

    r282 r328  
    1919        if not isinstance(puzzler, Puzzler):
    2020            puzzler = puzzler.puzzler
     21            if puzzler is None:
     22                # We've got a name, but no puzzler,
     23                # so we shouldn't actually be stuck
     24                # in here
     25                return
    2126        self._components[name] = puzzler
    2227        puzzler.set_glue(self)
Note: See TracChangeset for help on using the changeset viewer.