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

Wrong cache_dir variable (session_mirror.py) #124

Open
jhuguetn opened this issue Feb 10, 2020 · 0 comments
Open

Wrong cache_dir variable (session_mirror.py) #124

jhuguetn opened this issue Feb 10, 2020 · 0 comments

Comments

@jhuguetn
Copy link
Contributor

Wrong use of scan_cache_dir path variable at copy_session() when traversing across session resources at mirroring process. See here:

res_cache_dir = op.join(scan_cache_dir, res_label)

Throwing the following error,

Traceback (most recent call last):
  File "sessionmirror.py", line 711, in <module>
    main(args)
  File "sessionmirror.py", line 705, in main
    copy_session(src_sess, dst_sess, '/tmp')
  File "sessionmirror.py", line 491, in copy_session
    res_cache_dir = op.join(scan_cache_dir, res_label)
UnboundLocalError: local variable 'scan_cache_dir' referenced before assignment

Fix proposal

Use session_cache_dir instead.

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