0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00
penpot/backend/scripts
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
..
build 🎉 Add manage.py script for docker images 2023-01-20 17:14:32 +01:00
build-email-templates.sh
kill-repl.sh 📎 Add helper/devenv script for kill nonresponsive repl 2022-12-05 15:20:29 +01:00
manage.py 🐛 Fix undefined name RuntimeException on manage.py script 2023-02-05 11:19:28 +01:00
prefetch-templates.clj 🎉 Add prefetch builtin templates script 2022-08-03 17:06:53 +02:00
repl 🎉 Add prepl support 2023-01-19 15:41:12 +01:00
run.template.sh 📎 Improve bundle run template script 2022-12-05 15:20:29 +01:00
start-dev 🎉 Add login-with-password flag 2022-12-22 16:42:45 +01:00