Did I find the right examples for you? yes no

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)
Local name referenced but not bound to a value.

src/t/r/truongnha-HEAD/school/viewFinish.py   truongnha(Download)
 
    if vtMonToan == -1:
        raise UnboundLocalError(u'MathIsMissing')
    if vtMonVan == -1:
        raise UnboundLocalError(u'LiteratureIsMissing')

src/k/a/kabaret.core-0.1.0b3/kabaret/core/apps/base.py   kabaret.core(Download)
    def __get__(self, app, apptype):
        if app is None:
            raise UnboundLocalError('Cannot get req app without app instance')
        if self.app_key not in app._req_apps:
            req_app = app.host.app(self.app_key)

src/c/a/calentic-HEAD/calentic/utils/calendar_parser.py   calentic(Download)
            cal_data = open(self.ics_file, "rb")
        else:
            raise UnboundLocalError("No calendar url or file path has been set.")
 
        cal_str = cal_data.read()

src/c/r/cryptocoin-0.0.0.dev3/cryptocoin/key.py   cryptocoin(Download)
        # check that the class has coin-specific attributes set
        if not self._pubkey_hash:
            raise UnboundLocalError('All required attributes not set')
 
        self._passphrase = passphrase

src/d/e/Decovent-1.1.1/decovent/decovent.py   Decovent(Download)
    if class_ is None and event is not None:
        msg = "Class must be provided to unregister handlers for an event"
        raise UnboundLocalError(msg) 
 
    if class_ is None:

src/p/y/pymnl-0.5/pymnl/message.py   pymnl(Download)
        """
        if (not self._payload):
            raise UnboundLocalError("There is no payload in this message")
 
        self._msg_length = NLMSG_ALIGN(MSG_HDRLEN + len(self._payload))

src/b/y/byterun-HEAD/byterun/pyvm2.py   byterun(Download)
        else:
            raise UnboundLocalError(
                "local variable '%s' referenced before assignment" % name
            )
        self.push(val)

src/c/r/cryptocoin-HEAD/cryptocoin/key.py   cryptocoin(Download)
        # check that the class has coin-specific attributes set
        if not self._pubkey_hash or not self._privkey_hash:
            raise UnboundLocalError('All required attributes not set')
 
        self._passphrase = passphrase

src/e/r/erp5-HEAD/product/ERP5/tests/testInventory.py   erp5(Download)
  def stepCreateFullInventoryAtTheDate1(self, sequence=None,
                                        sequence_list=None, **kw):
    if getattr(self, 'full_inventory_start_date_1', None) is None:
      raise UnboundLocalError('Please assign self.full_inventory_start_date_1 '
                              'in your test method')
  def stepCreateFullInventoryAtTheDate2(self, sequence=None,
                                        sequence_list=None, **kw):
    if getattr(self, 'full_inventory_start_date_2', None) is None:
      raise UnboundLocalError('Please assign self.full_inventory_start_date_2 '
                              'in your test method')
    """ Create Packing List with self.start_date_1"""
    if getattr(self, 'start_date_1', None) is None:
      raise UnboundLocalError('Please Assign self.start_date_1 '
                              'in your test method')
    self.stepCreatePackingListForModule(sequence=sequence,
    """ Create Packing List with self.start_date_2"""
    if getattr(self, 'start_date_2', None) is None:
      raise UnboundLocalError('Please Assign self.start_date_2 '
                              'in your test method')
    self.stepCreatePackingListForModule(sequence=sequence,
    """ Create Packing List Line with self.resrouce_1"""
    if getattr(self, 'resource_1', None) is None:
      raise UnboundLocalError('Please Assign self.resource_1 '
                              'in your test method')
    resource_value = sequence.get(self.resource_1)