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

poor error message when wrong file type #108

Open
louking opened this issue Feb 22, 2021 · 0 comments
Open

poor error message when wrong file type #108

louking opened this issue Feb 22, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@louking
Copy link
Owner

louking commented Feb 22, 2021

Invalid exception seen

        Message type:       ERROR
        Location:           /var/www/www.routes.loutilities.com/venv/lib64/python3.6/site-packages/loutilities/tables.py:1239
        Module:             tables
        Function:           wrapped_f
        Time:               2021-02-22 13:23:48,507

        Message:

        Unexpected Error: exceptions must derive from BaseException
Traceback (most recent call last):
  File "/var/www/www.routes.loutilities.com/venv/lib64/python3.6/site-packages/loutilities/tables.py", line 1233, in wrapped_f
    f(self,*args, **kwargs)
  File "/var/www/www.routes.loutilities.com/venv/lib64/python3.6/site-packages/loutilities/tables.py", line 2511, in post
    self._responsedata = self.upload()
  File "/var/www/www.routes.loutilities.com/runningroutes/runningroutes/runningroutes/views/admin/routes.py", line 281, in upload
    latlng = LatLng(thisfile, filetype)
  File "/var/www/www.routes.loutilities.com/venv/lib64/python3.6/site-packages/loutilities/geo.py", line 21, in __init__
    raise 'invalid type: ' + filetype
TypeError: exceptions must derive from BaseException
@louking louking added the bug Something isn't working label Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant