Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066379
D7289.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
355 B
Subscribers
None
D7289.id.diff
View Options
diff --git a/swh/objstorage/api/server.py b/swh/objstorage/api/server.py
--- a/swh/objstorage/api/server.py
+++ b/swh/objstorage/api/server.py
@@ -43,7 +43,7 @@
def get_objstorage():
global objstorage
- if not objstorage:
+ if objstorage is None:
objstorage = get_swhobjstorage(**app.config["objstorage"])
return objstorage
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 7:14 AM (10 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227473
Attached To
D7289: use `objstorage is None` instead of `not objstorage`
Event Timeline
Log In to Comment