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

Stacktrace in case of error should possibly not include shellpy internals #56

Open
lamerman opened this issue Mar 2, 2016 · 0 comments

Comments

@lamerman
Copy link
Owner

lamerman commented Mar 2, 2016

Here is an example

^CTraceback (most recent call last):
File "/tmp/shellpy_root/root/cr/scripts/monitor.py", line 272, in
Traceback (most recent call last):
File "/usr/bin/shellpy", line 9, in
load_entry_point('shellpy==0.4.5', 'console_scripts', 'shellpy')()
File "/usr/lib/python2.7/site-packages/shellpython/shellpy.py", line 40, in main
main()
retcode = subprocess.call(processed_file + ' ' + ' '.join(script_args), shell=True, env=new_env)
File "/usr/lib64/python2.7/subprocess.py", line 524, in call
File "/tmp/shellpy_root/root/cr/scripts/monitor.py", line 269, in main
watchgod()
File "/tmp/shellpy_root/root/cr/scripts/monitor.py", line 232, in watchgod
return Popen(_popenargs, *_kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 1376, in wait
sleep(30)
KeyboardInterrupt
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/usr/lib64/python2.7/subprocess.py", line 478, in _eintr_retry_call
return func(*args)
KeyboardInterrupt

Possibly it should start with the line File "/tmp/shellpy_root/root/cr/scripts/monitor.py", line 269, in main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant