Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pip>=19.1.1
APScheduler==3.6.0
click==7.1.2
click>=7.1.2
colorama==0.4.0
Flask==2.0.0
Flask-Compress==1.4.0
Flask-SQLAlchemy==2.4.0
idna==2.7
idna==2.8
itsdangerous==2.0.0
Jinja2==3.0.0
logparser>=0.8.4
Expand Down
8 changes: 3 additions & 5 deletions scrapydweb/utils/setup_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,9 @@ def setup_postgresql(username, password, host, port):
except:
try:
cur.execute("CREATE DATABASE %s" % dbname)
except psycopg2.errors.DuplicateDatabase:
pass
except Exception as err:
# psycopg2.ProgrammingError: database "scrapydweb_apscheduler" already exists
if 'exists' in str(err):
pass
else:
raise
raise err
cur.close()
conn.close()
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
python_requires=">=3.6",
install_requires=[
"APScheduler==3.6.0", # Mar 18, 2019
"click==7.1.2", # Apr 28, 2020
"click>=7.1.2", # Apr 28, 2020
"colorama==0.4.0", # Oct 10, 2018
"Flask==2.0.0", # May 12, 2021
"Flask-Compress==1.4.0", # Jan 5, 2017
"Flask-SQLAlchemy==2.4.0", # Apr 25, 2019
"idna==2.7", # Jun 11, 2018
"idna==2.8", # Jun 11, 2018
"itsdangerous==2.0.0", # May 12, 2021
"Jinja2==3.0.0", # May 12, 2021
"logparser>=0.8.4",
Expand Down