Skip to content

Commit 7057d5d

Browse files
author
Iago Veloso
committed
bugfix "Set changed size during iteration"
1 parent 6646a2b commit 7057d5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ The easier way to run this project is using docker:
4949
5050
Run example; notice `source` and `my_catalogue` need to be replace with your destinations:
5151
52-
docker run --rm -v $(pwd)/source:/input:ro -v $(pwd)/my_catalogue:/output iago1460/catalogue:1.2.1 --src /input --dst /output --operation copy
52+
docker run --rm -v $(pwd)/source:/input:ro -v $(pwd)/my_catalogue:/output iago1460/catalogue:1.2.2 --src /input --dst /output --operation copy
5353
5454
5555
### In a virtual environment
5656
5757
virtualenv venv
5858
source venv/bin/activate
59-
pip3 install https://github.com/iago1460/photo-cataloguer/archive/1.2.1.zip
59+
pip3 install https://github.com/iago1460/photo-cataloguer/archive/1.2.2.zip
6060
catalogue --help
6161
6262

catalogue/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def unsubscribe(self, observer):
2828
self._observers.remove(observer)
2929

3030
def notify(self, *args):
31-
for observer in self._observers:
31+
for observer in list(self._observers):
3232
observer.notify(self, *args)
3333

3434

0 commit comments

Comments
 (0)