Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TSRh
gajim
Commits
fbb2ab6a
Commit
fbb2ab6a
authored
19 years ago
by
dkirov
Browse files
Options
Downloads
Patches
Plain Diff
put executescript in try block
parent
01f5effc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/check_paths.py
+8
-8
8 additions, 8 deletions
src/common/check_paths.py
with
8 additions
and
8 deletions
src/common/check_paths.py
+
8
−
8
View file @
fbb2ab6a
...
...
@@ -39,16 +39,16 @@ def assert_unread_msgs_table_exists():
'''
create table unread_messages if there is no such table
'''
con
=
sqlite
.
connect
(
logger
.
LOG_DB_PATH
)
cur
=
con
.
cursor
()
cur
.
executescript
(
'''
CREATE TABLE unread_messages (
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE
);
'''
)
try
:
cur
.
executescript
(
'''
CREATE TABLE unread_messages (
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE
);
'''
)
con
.
commit
()
gajim
.
logger
.
init_vars
()
# FIXME: is this needed?
gajim
.
logger
.
init_vars
()
except
sqlite
.
OperationalError
,
e
:
pass
con
.
close
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment