0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/backend
Christian Clauss b46b23b027 🐛 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:19:28 +01:00
..
dev 💄 Remove duplicate require in backend/dev/user.clj 2022-12-10 07:14:00 -05:00
resources 🐛 Fix social links broken 2023-02-02 13:13:24 +01:00
scripts 🐛 Fix undefined name RuntimeException on manage.py script 2023-02-05 11:19:28 +01:00
src 🐛 Fix social links broken 2023-02-02 13:13:24 +01:00
test/backend_tests 🐛 Fix weird numeration creating elements in dashboard 2023-02-02 10:19:36 +01:00
build.clj 🎉 Replace current uuidv1 with custom v8 2022-08-03 09:05:28 +02:00
deps.edn ⬆️ Update yetti to v9.12 2023-01-30 15:29:53 +01:00
package.json
tests.edn ♻️ Internal directory refactor. 2021-05-31 11:04:32 +02:00
yarn.lock