KBNLresearch / iromlab

Loader software for automated imaging of optical media with Nimbie disc robot
Apache License 2.0
31 stars 5 forks source link

AtributeError if entered PPN doesn't exist #27

Closed bitsgalore closed 7 years ago

bitsgalore commented 7 years ago

Happens both in Py 2.7 and 3.6:

Traceback (most recent call last):
  File "c:\python36\lib\tkinter\__init__.py", line 1699, in __call__
    return self.func(*args)
  File "f:\johan\pythonCode\iromlab\iromlab\iromlab.py", line 177, in on_submit
    noGGCRecords = response.sru.nr_of_records
AttributeError: 'bool' object has no attribute 'sru'

Expected behaviour: messagebox!

bitsgalore commented 7 years ago

Fixed: https://github.com/KBNLresearch/iromlab/commit/b49111a6ef029657bf049933a10eda38113f220c