Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 66cc9a6

Browse files
committed
Cleanup
1 parent a656ac1 commit 66cc9a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testgres/node.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
QueryException, \
5858
StartNodeException, \
5959
TimeoutException, \
60-
TestgresException
60+
TestgresException, \
61+
BackupException
6162

6263
from .logger import TestgresLogger
6364

@@ -884,7 +885,7 @@ def restore(self, filename, dbname=None, username=None):
884885
# try pg_restore if dump is binary formate, and psql if not
885886
try:
886887
execute_utility(_params, self.utils_log_name)
887-
except ExecUtilException as e:
888+
except ExecUtilException:
888889
self.psql(filename=filename, dbname=dbname, username=username)
889890

890891
@method_decorator(positional_args_hack(['dbname', 'query']))

0 commit comments

Comments
 (0)