Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch MongoDB error #33

Open
OliverEvans96 opened this issue Aug 16, 2017 · 0 comments
Open

Catch MongoDB error #33

OliverEvans96 opened this issue Aug 16, 2017 · 0 comments
Assignees
Labels

Comments

@OliverEvans96
Copy link
Collaborator

OliverEvans96 commented Aug 16, 2017

If mongo isn't running, there will be a timeout error which isn't displayed. Meanwhile, we get

---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-4-350e35eda54e> in <module>()
      1 wpw = WorkerPoolWidget()
----> 2 wpw.add_pool("Laptop", 3)
      3 wpw.add_pool("Cori", 32, "cori.nersc.gov")
      4 wpw

~/lbl/jupyter_hpc/workflow_widgets.py in add_pool(self, name, num_workers, location)
    434             )
    435 
--> 436             self._pool_dict[name] = pool
    437             self._pool_list.append(
    438                 (pool.name, pool)

UnboundLocalError: local variable 'pool' referenced before assignment

which isn't very helpful if you don't know what it means.

@OliverEvans96 OliverEvans96 self-assigned this Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant