Errors occur when downloading domoboard without .git folder
Closed this issue · 0 comments
wez3 commented
Some users get this error:
- Running on http://localhost:80/ (Press CTRL+C to quit)
127.0.0.1 - - [22/Jan/2017 21:58:14] "GET / HTTP/1.1" 302 -
[2017-01-22 21:58:14,157] ERROR in app: Exception on /dashboard [GET]
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Python27\lib\site-packages\flaskext\auth\auth.py", line 186, in decorator
return func(*args, **kwargs)
File "server.py", line 52, in generatePage
branch = webconfig.getCurrentBranch(),
File "C:\domoboard-master\domoboard-master\modules\webconfig.py", line 26, in getCurrentBranch
repo = git.Repo('.')
File "C:\Python27\lib\site-packages\git\repo\base.py", line 156, in init
raise InvalidGitRepositoryError(epath)
InvalidGitRepositoryError: C:\domoboard-master\domoboard-master
127.0.0.1 - - [22/Jan/2017 21:58:14] "GET /dashboard HTTP/1.1" 500 -
This is due to the missing of a .git folder. When downloading domoboard through for example the github zip functionality, the .git folder is not downloaded. It is important to install domoboard through a git clone, as mentioned in the readme.md.
An try except has to be added to above error, to disable the git functionality and/or show a message on how to install domoboard.