hyphanet / pyFreenet

Python FCPv2 library and utilities
https://freenetproject.org/
Other
60 stars 24 forks source link

freesitemgr update site fails when another site cannot be found #35

Open debbiedub opened 1 year ago

debbiedub commented 1 year ago

When I do freesitemgr update site and there is another site whose directory is not availables, I get the following error message and the command fails:

Traceback (most recent call last):
  File "/usr/local/bin/freesitemgr", line 563, in <module>
    main()
  File "/usr/local/bin/freesitemgr", line 444, in main
    sitemgr = SiteMgr(*args, **opts)
  File "/usr/local/lib/python3.10/site-packages/fcp3/sitemgr.py", line 104, in __init__
    self.load()
  File "/usr/local/lib/python3.10/site-packages/fcp3/sitemgr.py", line 166, in load
    site = SiteState(
  File "/usr/local/lib/python3.10/site-packages/fcp3/sitemgr.py", line 503, in __init__
    raise Exception("Site %s, directory %s nonexistent" % (
Exception: Site t3, directory /home/debbiedub/test/t3 nonexistent

The problem is in pyFreenet-0.5.8 (freesitemgr 0.3.4).

Thynix commented 1 year ago

Is my understanding correct that the behavior you would expect is that it only matter whether the site you've specified doesn't exist?