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

Bug on application CLI main #321

Closed
shayaniox opened this issue Apr 27, 2019 · 0 comments
Closed

Bug on application CLI main #321

shayaniox opened this issue Apr 27, 2019 · 0 comments
Labels
bug something isn't working

Comments

@shayaniox
Copy link
Contributor

shayaniox commented Apr 27, 2019

Running the applications without any parameters will result:

Traceback (most recent call last):
  File "/home/shayan/.virtualenvs/dolphin/bin/dolphin", line 11, in <module>
    load_entry_point('dolphin', 'console_scripts', 'dolphin')()
  File "/home/shayan/workspace/restfulpy/restfulpy/cli/launchers.py", line 20, in __call__
    return self.launch()
  File "/home/shayan/workspace/restfulpy/restfulpy/application/cli/main.py", line 72, in launch
    sys.exit(exitcode or 0)
UnboundLocalError: local variable 'exitcode' referenced before assignment

because the exitcode variable doesn't have a primary value:

https://github.com/Carrene/restfulpy/blob/56da177a1d9bfd980241e80b64d2f1f7949830b4/restfulpy/application/cli/main.py#L68

@shayaniox shayaniox added the bug something isn't working label Apr 27, 2019
shayaniox pushed a commit that referenced this issue Apr 27, 2019
shayaniox pushed a commit that referenced this issue Apr 27, 2019
@pylover pylover closed this as completed Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants