Skip to content

Commit 362ad79

Browse files
committed
formated with black
1 parent 8e47ed2 commit 362ad79

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

Mergin/projects_manager.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ def create_project(self, project_name, project_dir, is_public, namespace):
134134
data = {}
135135

136136
storage_limit = data.get("storage_limit")
137-
human_limit = (
138-
bytes_to_human_size(storage_limit)
139-
if storage_limit is not None
140-
else "unknown"
141-
)
137+
human_limit = bytes_to_human_size(storage_limit) if storage_limit is not None else "unknown"
142138

143139
msg = f"{e.detail}\nCurrent limit: {human_limit}"
144140

@@ -212,11 +208,7 @@ def create_project(self, project_name, project_dir, is_public, namespace):
212208
data = {}
213209

214210
storage_limit = data.get("storage_limit")
215-
human_limit = (
216-
bytes_to_human_size(storage_limit)
217-
if storage_limit is not None
218-
else "unknown"
219-
)
211+
human_limit = bytes_to_human_size(storage_limit) if storage_limit is not None else "unknown"
220212

221213
msg = f"{exc.detail}\nCurrent limit: {human_limit}"
222214

@@ -253,7 +245,6 @@ def create_project(self, project_name, project_dir, is_public, namespace):
253245

254246
return True
255247

256-
257248
def project_status(self, project_dir):
258249
if project_dir is None:
259250
return
@@ -505,11 +496,7 @@ def sync_project(self, project_dir, project_name=None):
505496
except json.JSONDecodeError:
506497
data = {}
507498
storage_limit = data.get("storage_limit")
508-
human_limit = (
509-
bytes_to_human_size(storage_limit)
510-
if storage_limit is not None
511-
else "unknown"
512-
)
499+
human_limit = bytes_to_human_size(storage_limit) if storage_limit is not None else "unknown"
513500
msg = f"{dlg.exception.detail}\nCurrent limit: {human_limit}"
514501
else:
515502
msg = str(dlg.exception)

0 commit comments

Comments
 (0)