Tygs / 0bin

Client side encrypted pastebin
https://0bin.net
Do What The F*ck You Want To Public License
1.37k stars 198 forks source link

--version does not work #144

Open kimusan opened 3 years ago

kimusan commented 3 years ago

When using the arg --version it fails with the following error:

python3 zerobin.pyz --version
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "zerobin.pyz/__main__.py", line 3, in <module>
  File "zerobin.pyz/_bootstrap/__init__.py", line 187, in bootstrap
  File "zerobin.pyz/_bootstrap/__init__.py", line 33, in run
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/zerobin/cli.py", line 220, in main
    clize.run(runserver, delete_paste, infos, set_admin_password, clean_expired_pastes)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/sigtools/modifiers.py", line 158, in __call__
    return self.func(*args, **kwargs)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 363, in run
    ret = cli(*args)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 220, in __call__
    return func(*posargs, **kwargs)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 262, in _cli
    return func('{0} {1}'.format(name, command), *args)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 220, in __call__
    return func(*posargs, **kwargs)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/zerobin/cli.py", line 42, in runserver
    print("0bin V%s" % settings.VERSION)
AttributeError: 'SettingsContainer' object has no attribute 'VERSION'