Skip to content

Commit

Permalink
making sure we support python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Jul 22, 2021
1 parent 7203caa commit 68fa244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion development.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.7-slim

RUN apt update && apt install curl -y

Expand Down
5 changes: 2 additions & 3 deletions nicegui/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import time
import traceback
from typing import Awaitable
from asyncio.exceptions import CancelledError
from binding import BindableProperty
from .elements.element import Element
from .utils import handle_exceptions
Expand Down Expand Up @@ -46,8 +45,8 @@ async def loop():
await parent.update()
dt = time.time() - start
await asyncio.sleep(interval - dt)
except CancelledError:
pass
# except CancelledError: # only works for python >= 3.8
# pass
except:
traceback.print_exc()
await asyncio.sleep(interval)
Expand Down

0 comments on commit 68fa244

Please sign in to comment.