0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00
penpot/backend
Christian Clauss 58001f367a 🐛 Fix undefined name RuntimeException on manage.py script
Python defines [`RuntimeError`](https://docs.python.org/3.7/library/exceptions.html#RuntimeError)
but it does not define `RuntimeException` so a `NameError` will be raised when any of these lines
are executed.

% `python3 -c "RuntimeException('This is a test...')"`
```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'RuntimeException' is not defined
```

% `flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics`
```
./backend/scripts/manage.py:22:15: F821 undefined name 'RuntimeException'
        raise RuntimeException(f"invalid PREPL_URI: {PREPL_URI}")
              ^
./backend/scripts/manage.py:25:15: F821 undefined name 'RuntimeException'
        raise RuntimeException(f"invalid PREPL_URI: {PREPL_URI}")
              ^
./backend/scripts/manage.py:49:23: F821 undefined name 'RuntimeException'
                raise RuntimeException("unexpected response from PREPL")
                      ^
3     F821 undefined name 'RuntimeException'
3
```
2023-02-05 11:18:01 +01:00
..
dev 💄 Remove duplicate require in backend/dev/user.clj 2022-12-10 07:14:00 -05:00
resources Merge remote-tracking branch 'origin/staging' into develop 2023-02-02 18:06:59 +01:00
scripts 🐛 Fix undefined name RuntimeException on manage.py script 2023-02-05 11:18:01 +01:00
src Merge remote-tracking branch 'origin/staging' into develop 2023-02-02 18:06:59 +01:00
test/backend_tests Merge remote-tracking branch 'origin/staging' into develop 2023-02-02 18:06:59 +01:00
build.clj 🔧 Do not compile clj source (allow dynamic instrumentation on runtime) 2023-02-02 13:38:04 +01:00
deps.edn ⬆️ Update dependencies on backend and common 2023-02-02 13:38:04 +01:00
package.json
tests.edn ♻️ Internal directory refactor. 2021-05-31 11:04:32 +02:00
yarn.lock ⬆️ Update dependencies. 2020-12-21 16:55:54 +01:00