Skip to content

Commit c27332b

Browse files
Merge branch 'refactor-errors' into dev
2 parents c8d8798 + 77f98ce commit c27332b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datajoint/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def suggest(self, *args):
1414
:param args: addition arguments
1515
:return: a new exception of the same type with the additional arguments
1616
"""
17-
return self.__class__(*self.args, *args)
17+
return self.__class__(*(self.args + args))
1818

1919

2020
# --- Second Level ---

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def setup_package():
116116
db_name = "djtest_blob_migrate"
117117
db_file = "v0_11.sql"
118118
conn_root.query("""
119-
CREATE DATABASE {};
119+
CREATE DATABASE IF NOT EXISTS {};
120120
""".format(db_name))
121121

122122
statements = parse_sql('{}/{}'.format(source, db_file))

0 commit comments

Comments
 (0)