Skip to content

Commit 82eb39d

Browse files
committed
fix catch error
1 parent d7961a2 commit 82eb39d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mergin/test/test_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import pytz
1111
import sqlite3
1212
import glob
13-
from urllib.error import HTTPError
1413

1514
from .. import InvalidProject
1615
from ..client import (
@@ -2885,5 +2884,5 @@ def test_mc_without_login():
28852884
assert config["server_configured"]
28862885

28872886
# without login should not be able to access workspaces
2888-
with pytest.raises(HTTPError):
2887+
with pytest.raises(ClientError, match="Authentication information is missing or invalid."):
28892888
mc.workspaces_list()

0 commit comments

Comments
 (0)